diff --git a/requirements-dev.txt b/requirements-dev.txt index b663c725..49239d6e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -7,8 +7,10 @@ mypy>=0.990,<1.1.0; platform_machine != "aarch64" and python_version >= "3.7" black==22.3.0 types-requests==2.28.11.16 # Prompting libraries needed for testing -langchain==0.0.302; python_version>="3.9" -openai>=0.27; python_version>="3.9" +langchain==0.0.331; python_version>="3.9" +# Workaround for LangChain bug: pin OpenAI version. To be removed after LangChain has been fixed - see +# https://github.com/langchain-ai/langchain/issues/12967. +openai>=0.27,<=0.28.1; python_version>="3.9" # Necessary for running all local models on GPU. transformers[sentencepiece]>=4.0.0 diff --git a/setup.cfg b/setup.cfg index c1d91c9e..2464317a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -45,7 +45,7 @@ spacy_misc = [options.extras_require] langchain = - langchain==0.0.249 + langchain==0.0.331 transformers = torch>=1.13.1,<2.0 transformers>=4.28.1,<5.0