From 303faa348bdf3a8a967fada4146dc86e6219ca7c Mon Sep 17 00:00:00 2001 From: Alexey Snigir <35569332+l0uden@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:30:14 +0100 Subject: [PATCH] Set upper bound version for openai (#153) --- .github/workflows/checks-vizro-ai.yml | 1 - .github/workflows/checks-vizro-core.yml | 1 - .github/workflows/lint-vizro-all.yml | 1 - .../workflows/test-integration-vizro-ai.yml | 1 - .../workflows/test-integration-vizro-core.yml | 1 - .github/workflows/test-unit-vizro-ai.yml | 1 - .github/workflows/test-unit-vizro-core.yml | 1 - ...113606_alexey_snigir_pin_openai_version.md | 48 +++++++++++++++++++ vizro-ai/pyproject.toml | 2 +- vizro-ai/snyk/requirements.txt | 2 +- 10 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 vizro-ai/changelog.d/20231109_113606_alexey_snigir_pin_openai_version.md diff --git a/.github/workflows/checks-vizro-ai.yml b/.github/workflows/checks-vizro-ai.yml index 09e7bc44b..e85b86435 100644 --- a/.github/workflows/checks-vizro-ai.yml +++ b/.github/workflows/checks-vizro-ai.yml @@ -16,7 +16,6 @@ on: concurrency: group: checks-ai-${{ github.head_ref }} - cancel-in-progress: true env: PYTHONUNBUFFERED: "1" diff --git a/.github/workflows/checks-vizro-core.yml b/.github/workflows/checks-vizro-core.yml index dee429588..6bfc49684 100644 --- a/.github/workflows/checks-vizro-core.yml +++ b/.github/workflows/checks-vizro-core.yml @@ -17,7 +17,6 @@ on: concurrency: group: checks-core-${{ github.head_ref }} - cancel-in-progress: true env: PYTHONUNBUFFERED: "1" diff --git a/.github/workflows/lint-vizro-all.yml b/.github/workflows/lint-vizro-all.yml index 1e1060b52..6836ff174 100644 --- a/.github/workflows/lint-vizro-all.yml +++ b/.github/workflows/lint-vizro-all.yml @@ -13,7 +13,6 @@ on: concurrency: group: lint-${{ github.head_ref }} - cancel-in-progress: true env: PYTHONUNBUFFERED: "1" diff --git a/.github/workflows/test-integration-vizro-ai.yml b/.github/workflows/test-integration-vizro-ai.yml index 7095db15f..eebcd3fcb 100644 --- a/.github/workflows/test-integration-vizro-ai.yml +++ b/.github/workflows/test-integration-vizro-ai.yml @@ -13,7 +13,6 @@ on: concurrency: group: test-integration-${{ github.head_ref }} - cancel-in-progress: true env: PYTHONUNBUFFERED: "1" diff --git a/.github/workflows/test-integration-vizro-core.yml b/.github/workflows/test-integration-vizro-core.yml index c1dc63341..637b3df7b 100644 --- a/.github/workflows/test-integration-vizro-core.yml +++ b/.github/workflows/test-integration-vizro-core.yml @@ -13,7 +13,6 @@ on: concurrency: group: test-integration-${{ github.head_ref }} - cancel-in-progress: true env: PYTHONUNBUFFERED: "1" diff --git a/.github/workflows/test-unit-vizro-ai.yml b/.github/workflows/test-unit-vizro-ai.yml index feaf9d826..7fb4d0523 100644 --- a/.github/workflows/test-unit-vizro-ai.yml +++ b/.github/workflows/test-unit-vizro-ai.yml @@ -13,7 +13,6 @@ on: concurrency: group: test-unit-${{ github.head_ref }} - cancel-in-progress: true env: PYTHONUNBUFFERED: "1" diff --git a/.github/workflows/test-unit-vizro-core.yml b/.github/workflows/test-unit-vizro-core.yml index e5fe02d51..aef297520 100644 --- a/.github/workflows/test-unit-vizro-core.yml +++ b/.github/workflows/test-unit-vizro-core.yml @@ -13,7 +13,6 @@ on: concurrency: group: test-unit-${{ github.head_ref }} - cancel-in-progress: true env: PYTHONUNBUFFERED: "1" diff --git a/vizro-ai/changelog.d/20231109_113606_alexey_snigir_pin_openai_version.md b/vizro-ai/changelog.d/20231109_113606_alexey_snigir_pin_openai_version.md new file mode 100644 index 000000000..f1f65e73c --- /dev/null +++ b/vizro-ai/changelog.d/20231109_113606_alexey_snigir_pin_openai_version.md @@ -0,0 +1,48 @@ + + + + + + + + + diff --git a/vizro-ai/pyproject.toml b/vizro-ai/pyproject.toml index ec978163d..fc1160234 100644 --- a/vizro-ai/pyproject.toml +++ b/vizro-ai/pyproject.toml @@ -15,7 +15,7 @@ classifiers = [ dependencies = [ "pandas", "tabulate", - "openai>=0.27.8", + "openai>=0.27.8,<1.0.0", # TODO add support for openai>=1.0.0 "langchain==0.0.325", "python-dotenv>=1.0.0", # TODO decide env var management to see if we need this "vizro>=0.1.4", # TODO set upper bound later diff --git a/vizro-ai/snyk/requirements.txt b/vizro-ai/snyk/requirements.txt index 845ee3e01..3bf593347 100644 --- a/vizro-ai/snyk/requirements.txt +++ b/vizro-ai/snyk/requirements.txt @@ -1,6 +1,6 @@ pandas tabulate -openai>=0.27.8 +openai>=0.27.8,<1.0.0 langchain==0.0.325 python-dotenv>=1.0.0 vizro>=0.1.4