Skip to content

Commit

Permalink
Update langchain pin to 0.0.331 (#357)
Browse files Browse the repository at this point in the history
* Update langchain pin.

* Add workaround for LangChain/OpenAI bug.
  • Loading branch information
rmitsch authored Nov 8, 2023
1 parent fd12364 commit 7a5d108
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a5d108

Please sign in to comment.