From 5921039fa8f936f95281b168e80b874b6d646099 Mon Sep 17 00:00:00 2001 From: Andrei Balas Date: Mon, 31 Aug 2026 15:32:50 +0300 Subject: [PATCH] fix: bound anthropic<1.0.0 on the bedrock extra The bedrock extra received the anthropic SDK only transitively via langchain-aws[anthropic] (unbounded above); langchain-anthropic 1.7.0 also lifted its own <1.0.0 pin. Fresh resolutions therefore picked anthropic 1.x, which moved to httpx2 and rejects UiPath's httpx clients at Bedrock chat-model construction. Add an explicit anthropic[bedrock]>=0.96.0,<1.0.0 to the bedrock extra (anthropic and all already carry the bound; no other extra pulls anthropic transitively). Co-Authored-By: Claude Fable 5 --- packages/uipath_langchain_client/CHANGELOG.md | 5 +++++ packages/uipath_langchain_client/pyproject.toml | 1 + .../src/uipath_langchain_client/__version__.py | 2 +- uv.lock | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/uipath_langchain_client/CHANGELOG.md b/packages/uipath_langchain_client/CHANGELOG.md index 7f460ae..b5ba487 100644 --- a/packages/uipath_langchain_client/CHANGELOG.md +++ b/packages/uipath_langchain_client/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to `uipath_langchain_client` will be documented in this file. +## [1.18.1] - 2026-08-31 + +### Fixed +- Bound `anthropic[bedrock]>=0.96.0,<1.0.0` explicitly on the `bedrock` extra, which previously admitted anthropic 1.x transitively; the 1.x SDK rejects UiPath's httpx clients. + ## [1.18.0] - 2026-08-13 ### Changed diff --git a/packages/uipath_langchain_client/pyproject.toml b/packages/uipath_langchain_client/pyproject.toml index 4d5eadf..c32941d 100644 --- a/packages/uipath_langchain_client/pyproject.toml +++ b/packages/uipath_langchain_client/pyproject.toml @@ -22,6 +22,7 @@ anthropic = [ ] bedrock = [ "langchain-aws[anthropic]>=1.4.5,<2.0.0", + "anthropic[bedrock]>=0.96.0,<1.0.0", ] vertexai = [ "langchain-google-vertexai>=3.2.2,<4.0.0", diff --git a/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py b/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py index 66e880d..f0fffc7 100644 --- a/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py +++ b/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py @@ -1,3 +1,3 @@ __title__ = "UiPath LangChain Client" __description__ = "A Python client for interacting with UiPath's LLM services via LangChain." -__version__ = "1.18.0" +__version__ = "1.18.1" diff --git a/uv.lock b/uv.lock index cda5d40..24f488c 100644 --- a/uv.lock +++ b/uv.lock @@ -3747,6 +3747,7 @@ azure = [ { name = "langchain-azure-ai" }, ] bedrock = [ + { name = "anthropic", extra = ["bedrock"] }, { name = "langchain-aws", extra = ["anthropic"] }, ] fireworks = [ @@ -3767,6 +3768,8 @@ vertexai = [ [package.metadata] requires-dist = [ + { name = "anthropic", extras = ["bedrock"], marker = "extra == 'all'", specifier = ">=0.96.0,<1.0.0" }, + { name = "anthropic", extras = ["bedrock"], marker = "extra == 'bedrock'", specifier = ">=0.96.0,<1.0.0" }, { name = "anthropic", extras = ["bedrock", "vertex"], marker = "extra == 'all'", specifier = ">=0.96.0,<1.0.0" }, { name = "anthropic", extras = ["bedrock", "vertex"], marker = "extra == 'anthropic'", specifier = ">=0.96.0,<1.0.0" }, { name = "langchain", specifier = ">=1.2.15,<2.0.0" },