Skip to content

The agent engineering platform.

LangServe: Relax requirements (#11198)

Eugene Yurtseve06e84b293c9
diff --git a/libs/langserve/poetry.lock b/libs/langserve/poetry.lock
index 2a3304d63c..70ce87b1ef 100644
--- a/libs/langserve/poetry.lock
+++ b/libs/langserve/poetry.lock
@@ -1002,13 +1002,13 @@ files = [
[[package]]
name = "httpcore"
-version = "0.18.0"
+version = "0.16.3"
description = "A minimal low-level HTTP client."
optional = false
-python-versions = ">=3.8"
+python-versions = ">=3.7"
files = [
- {file = "httpcore-0.18.0-py3-none-any.whl", hash = "sha256:adc5398ee0a476567bf87467063ee63584a8bce86078bf748e48754f60202ced"},
- {file = "httpcore-0.18.0.tar.gz", hash = "sha256:13b5e5cd1dca1a6636a6aaea212b19f4f85cd88c366a2b82304181b769aab3c9"},
+ {file = "httpcore-0.16.3-py3-none-any.whl", hash = "sha256:da1fb708784a938aa084bde4feb8317056c55037247c787bd7e19eb2c2949dc0"},
+ {file = "httpcore-0.16.3.tar.gz", hash = "sha256:c5d6f04e2fc530f39e0c077e6a30caa53f1451096120f1f38b954afd0b17c0cb"},
]
[package.dependencies]
@@ -1070,24 +1070,24 @@ test = ["Cython (>=0.29.24,<0.30.0)"]
[[package]]
name = "httpx"
-version = "0.25.0"
+version = "0.23.3"
description = "The next generation HTTP client."
optional = false
-python-versions = ">=3.8"
+python-versions = ">=3.7"
files = [
- {file = "httpx-0.25.0-py3-none-any.whl", hash = "sha256:181ea7f8ba3a82578be86ef4171554dd45fec26a02556a744db029a0a27b7100"},
- {file = "httpx-0.25.0.tar.gz", hash = "sha256:47ecda285389cb32bb2691cc6e069e3ab0205956f681c5b2ad2325719751d875"},
+ {file = "httpx-0.23.3-py3-none-any.whl", hash = "sha256:a211fcce9b1254ea24f0cd6af9869b3d29aba40154e947d2a07bb499b3e310d6"},
+ {file = "httpx-0.23.3.tar.gz", hash = "sha256:9818458eb565bb54898ccb9b8b251a28785dd4a55afbc23d0eb410754fe7d0f9"},
]
[package.dependencies]
certifi = "*"
-httpcore = ">=0.18.0,<0.19.0"
-idna = "*"
+httpcore = ">=0.15.0,<0.17.0"
+rfc3986 = {version = ">=1.3,<2", extras = ["idna2008"]}
sniffio = "*"
[package.extras]
brotli = ["brotli", "brotlicffi"]
-cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"]
+cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<13)"]
http2 = ["h2 (>=3,<5)"]
socks = ["socksio (==1.*)"]
@@ -2837,6 +2837,23 @@ files = [
[package.dependencies]
six = "*"
+[[package]]
+name = "rfc3986"
+version = "1.5.0"
+description = "Validating URI References per RFC 3986"
+optional = false
+python-versions = "*"
+files = [
+ {file = "rfc3986-1.5.0-py2.py3-none-any.whl", hash = "sha256:a86d6e1f5b1dc238b218b012df0aa79409667bb209e58da56d0b94704e712a97"},
+ {file = "rfc3986-1.5.0.tar.gz", hash = "sha256:270aaf10d87d0d4e095063c65bf3ddbc6ee3d0b226328ce21e036f946e421835"},
+]
+
+[package.dependencies]
+idna = {version = "*", optional = true, markers = "extra == \"idna2008\""}
+
+[package.extras]
+idna2008 = ["idna"]
+
[[package]]
name = "rfc3986-validator"
version = "0.1.1"
@@ -3784,4 +3801,4 @@ server = ["fastapi", "sse-starlette"]
[metadata]
lock-version = "2.0"
python-versions = ">3.8.1,<4"
-content-hash = "269890acd7a232df29d3e807e29bcebd2464ecfadeec8a387a0cf2fc55a2dfc6"
+content-hash = "e8db4e6e8cd78f7082ac556cd561267c7e3ce1e80d2aa16adb5ff09834ef5d02"
diff --git a/libs/langserve/pyproject.toml b/libs/langserve/pyproject.toml
index f61e269e64..446a3dfff8 100644
--- a/libs/langserve/pyproject.toml
+++ b/libs/langserve/pyproject.toml
@@ -9,12 +9,12 @@ repository = "https://github.com/langchain-ai/langchain"
[tool.poetry.dependencies]
python = ">3.8.1,<4"
-httpx = "^0.25.0"
+httpx = "^0.23.0" # May be able to decrease this version
fastapi = {version = ">0.90.1", optional = true}
-sse-starlette = {version = "^1.6.5", optional = true}
+sse-starlette = {version = "^1.3.0", optional = true}
httpx-sse = {version = "^0.3.1", optional = true}
pydantic = "^1"
-langchain = "^0.0.304"
+langchain = ">=0.0.304"
[tool.poetry.group.dev.dependencies]
jupyterlab = "^3.6.1"