Skip to content

Commit 44d7bbb

Browse files
committed
feat(langchain): extend dependency constraints to support LangChain 1.x
Extend LangChain dependency constraints to support both 0.x and 1.x versions: - langchain: >=0.2.14,<0.4.0 → >=0.2.14,<2.0.0 - langchain-core: >=0.2.14,<0.4.0 → >=0.2.14,<2.0.0 - langchain-community: >=0.2.5,<0.4.0 → >=0.2.5,<2.0.0 Remove langchain-nvidia-ai-endpoints from optional dependencies as it should be installed manually when needed. fix
1 parent 0da4b14 commit 44d7bbb

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

poetry.lock

Lines changed: 1 addition & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ presidio-analyzer = { version = ">=2.2", optional = true, python = "<3.13" }
9797
presidio-anonymizer = { version = ">=2.2", optional = true, python = "<3.13" }
9898

9999
# nim
100-
langchain-nvidia-ai-endpoints = { version = ">= 0.2.0", optional = true }
101100

102101
# gpc
103102
google-cloud-language = { version = ">=2.14.0", optional = true }
@@ -111,7 +110,6 @@ eval = ["tqdm", "numpy", "streamlit", "tornado"]
111110
openai = ["langchain-openai"]
112111
gcp = ["google-cloud-language"]
113112
tracing = ["opentelemetry-api", "aiofiles"]
114-
nvidia = ["langchain-nvidia-ai-endpoints"]
115113
jailbreak = ["yara-python"]
116114
# Poetry does not support recursive dependencies, so we need to add all the dependencies here.
117115
# I also support their decision. There is no PEP for recursive dependencies, but it has been supported in pip since version 21.2.
@@ -126,7 +124,6 @@ all = [
126124
"google-cloud-language",
127125
"opentelemetry-api",
128126
"aiofiles",
129-
"langchain-nvidia-ai-endpoints",
130127
"yara-python",
131128
]
132129

0 commit comments

Comments
 (0)