Skip to content

Commit 14357dc

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 388a0e4 commit 14357dc

File tree

2 files changed

+5
-36
lines changed

2 files changed

+5
-36
lines changed

poetry.lock

Lines changed: 2 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ fastapi = ">=0.103.0,"
5252
fastembed = [{ version = ">=0.2.2, <=0.6.0", python = ">=3.10,<3.14" }]
5353
httpx = ">=0.24.1"
5454
jinja2 = ">=3.1.6"
55-
langchain = ">=0.2.14,<0.4.0"
56-
langchain-core = ">=0.2.14,<0.4.0"
57-
langchain-community = ">=0.2.5,<0.4.0"
55+
langchain = ">=0.2.14,<2.0.0"
56+
langchain-core = ">=0.2.14,<2.0.0"
57+
langchain-community = ">=0.2.5,<2.0.0"
5858
lark = ">=1.1.7"
5959
nest-asyncio = ">=1.5.6,"
6060
# NOTE:
@@ -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)