From 2562196b1b3d538043eb6cee45f49fc7ea28675f Mon Sep 17 00:00:00 2001 From: AnnaXiong Date: Tue, 18 Jun 2024 00:39:29 +0800 Subject: [PATCH 1/5] set upper bound of tenacity --- vizro-ai/pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/vizro-ai/pyproject.toml b/vizro-ai/pyproject.toml index 9ded3fca5..f7f5471a6 100644 --- a/vizro-ai/pyproject.toml +++ b/vizro-ai/pyproject.toml @@ -17,6 +17,7 @@ dependencies = [ "pandas", "tabulate", "openai>=1.0.0", + "tenacity<=8.3.0", # TODO update when tenacity 8.4.0 is compatible with langchain "langchain>=0.1.0, <0.3.0", # TODO update all LLMChain class and remove upper bound "langchain-openai", "python-dotenv>=1.0.0", # TODO decide env var management to see if we need this From 3a976974c5ad8e556217f5b3ce47ed33cd2fe604 Mon Sep 17 00:00:00 2001 From: AnnaXiong Date: Tue, 18 Jun 2024 00:39:49 +0800 Subject: [PATCH 2/5] changelog --- ...2_anna_xiong_update_vizro_ai_dependency.md | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 vizro-ai/changelog.d/20240618_003942_anna_xiong_update_vizro_ai_dependency.md diff --git a/vizro-ai/changelog.d/20240618_003942_anna_xiong_update_vizro_ai_dependency.md b/vizro-ai/changelog.d/20240618_003942_anna_xiong_update_vizro_ai_dependency.md new file mode 100644 index 000000000..f1f65e73c --- /dev/null +++ b/vizro-ai/changelog.d/20240618_003942_anna_xiong_update_vizro_ai_dependency.md @@ -0,0 +1,48 @@ + + + + + + + + + From 4ca0768ac24b6d98f2db43c576ff83ce3f1f9005 Mon Sep 17 00:00:00 2001 From: AnnaXiong Date: Tue, 18 Jun 2024 00:43:01 +0800 Subject: [PATCH 3/5] snyk --- vizro-ai/snyk/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/vizro-ai/snyk/requirements.txt b/vizro-ai/snyk/requirements.txt index ecc8cdf98..3602ecb3a 100644 --- a/vizro-ai/snyk/requirements.txt +++ b/vizro-ai/snyk/requirements.txt @@ -1,6 +1,7 @@ pandas tabulate openai>=1.0.0 +tenacity<=8.3.0 langchain>=0.1.0, <0.3.0 langchain-openai python-dotenv>=1.0.0 From c58dc9109bc829d3c961174e340d0e4e3620c802 Mon Sep 17 00:00:00 2001 From: AnnaXiong Date: Tue, 18 Jun 2024 01:02:13 +0800 Subject: [PATCH 4/5] test new version 8.4.1 --- vizro-ai/pyproject.toml | 2 +- vizro-ai/snyk/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vizro-ai/pyproject.toml b/vizro-ai/pyproject.toml index f7f5471a6..0f07fcc4c 100644 --- a/vizro-ai/pyproject.toml +++ b/vizro-ai/pyproject.toml @@ -17,7 +17,7 @@ dependencies = [ "pandas", "tabulate", "openai>=1.0.0", - "tenacity<=8.3.0", # TODO update when tenacity 8.4.0 is compatible with langchain + "tenacity==8.4.1", # TODO update when tenacity 8.4.0 is compatible with langchain "langchain>=0.1.0, <0.3.0", # TODO update all LLMChain class and remove upper bound "langchain-openai", "python-dotenv>=1.0.0", # TODO decide env var management to see if we need this diff --git a/vizro-ai/snyk/requirements.txt b/vizro-ai/snyk/requirements.txt index 3602ecb3a..a10c5dbc4 100644 --- a/vizro-ai/snyk/requirements.txt +++ b/vizro-ai/snyk/requirements.txt @@ -1,7 +1,7 @@ pandas tabulate openai>=1.0.0 -tenacity<=8.3.0 +tenacity==8.4.1 langchain>=0.1.0, <0.3.0 langchain-openai python-dotenv>=1.0.0 From 0f4345a94bb769ec200512010c1392725ff9b525 Mon Sep 17 00:00:00 2001 From: Anna Xiong Date: Tue, 18 Jun 2024 16:09:58 +0800 Subject: [PATCH 5/5] Apply suggestions from code review Co-authored-by: Li Nguyen <90609403+huong-li-nguyen@users.noreply.github.com> --- vizro-ai/pyproject.toml | 2 +- vizro-ai/snyk/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vizro-ai/pyproject.toml b/vizro-ai/pyproject.toml index 0f07fcc4c..4d7eace79 100644 --- a/vizro-ai/pyproject.toml +++ b/vizro-ai/pyproject.toml @@ -17,7 +17,7 @@ dependencies = [ "pandas", "tabulate", "openai>=1.0.0", - "tenacity==8.4.1", # TODO update when tenacity 8.4.0 is compatible with langchain + "tenacity=!=8.4.1", # https://github.com/langchain-ai/langchain/issues/22972 "langchain>=0.1.0, <0.3.0", # TODO update all LLMChain class and remove upper bound "langchain-openai", "python-dotenv>=1.0.0", # TODO decide env var management to see if we need this diff --git a/vizro-ai/snyk/requirements.txt b/vizro-ai/snyk/requirements.txt index a10c5dbc4..e59533eeb 100644 --- a/vizro-ai/snyk/requirements.txt +++ b/vizro-ai/snyk/requirements.txt @@ -1,7 +1,7 @@ pandas tabulate openai>=1.0.0 -tenacity==8.4.1 +tenacity!=8.4.1 langchain>=0.1.0, <0.3.0 langchain-openai python-dotenv>=1.0.0