Skip to content

Commit

Permalink
Merge pull request #308 from explosion/chore/update-langchain
Browse files Browse the repository at this point in the history
Update `langchain` pin
  • Loading branch information
rmitsch authored Oct 2, 2023
2 parents 8e9a11b + 2f53147 commit 8c26a53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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.249; python_version>="3.9"
langchain==0.0.302; python_version>="3.9"
openai>=0.27; python_version>="3.9"

# Necessary for running all local models on GPU.
Expand Down
5 changes: 5 additions & 0 deletions spacy_llm/models/langchain/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
from ...compat import has_langchain, langchain
from ...registry import registry

try:
from langchain import llms # noqa: F401
except (ImportError, AttributeError):
llms = None


class LangChain:
def __init__(
Expand Down

0 comments on commit 8c26a53

Please sign in to comment.