fix: bound anthropic<1.0.0 on the bedrock extra of uipath-langchain-client - #130
Open
andreibalas-uipath wants to merge 1 commit into
Open
fix: bound anthropic<1.0.0 on the bedrock extra of uipath-langchain-client#130andreibalas-uipath wants to merge 1 commit into
andreibalas-uipath wants to merge 1 commit into
Conversation
andreibalas-uipath
requested review from
DragosBobolea,
cosminacho,
cristipufu,
dragosvelcea,
ionmincu,
ionut-mihalache-uipath,
radu-mocanu and
vldcmp-uipath
as code owners
August 31, 2026 12:33
andreibalas-uipath
had a problem deploying
to
LLMGW_SETTINGS
August 31, 2026 12:34 — with
GitHub Actions
Failure
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 <noreply@anthropic.com>
andreibalas-uipath
force-pushed
the
fix/bound-anthropic-bedrock-extra
branch
from
August 31, 2026 12:40
240b490 to
3c751d3
Compare
andreibalas-uipath
had a problem deploying
to
LLMGW_SETTINGS
August 31, 2026 12:41 — with
GitHub Actions
Failure
radu-mocanu
approved these changes
Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Affected package: langchain only (
uipath-langchain-client1.18.0 → 1.18.1).The
bedrockextra had no directanthropicrequirement — it received the SDK only transitively:bedrock→langchain-aws[anthropic]>=1.4.5,<2.0.0langchain-aws[anthropic](1.7.4) →anthropic[bedrock]>=0.95.0— no upper boundlangchain-anthropic1.7.0 (2026-08-27) lifted its ownanthropic<1.0.0pin to>=0.120.0,<2.0.0So any fresh resolution of
uipath-langchain-client[bedrock]since ~2026-08-27 pickedanthropic==1.2.0. The anthropic 1.x SDK moved tohttpx2and rejects the UiPath HTTP client at construction time inclients/bedrock/chat_models.py:This broke every consumer resolving fresh — e.g. all
uipath-langchain-pythonintegration suites since 2026-08-29 (example run) and any end user runninguv syncon a project using the bedrock extra.Changes
anthropic[bedrock]>=0.96.0,<1.0.0to thebedrockextra so the bound applies regardless of what transitive dependencies allow.uv.lock(resolution unchanged —anthropicstays 0.96.0; only the new requirement metadata is recorded).Audit of remaining extras
Only
bedrockhad the gap.anthropicandallalready carry the bound.vertexaiuses plainlangchain-google-vertexai(no[anthropic]extra), andgoogle/azure/fireworks/litellm/openaihave noanthropicin their closures.langchain-anthropic/langchain-awsthemselves are deliberately NOT bounded —langchain-anthropic1.7.0 still admitsanthropic0.12x, so boundinganthropicalone is sufficient and less restrictive.Verification
Fresh (unlocked) resolution of the local package against PyPI:
[bedrock]→anthropic==0.125.0, withlangchain-aws==1.7.4andlangchain-anthropic==1.7.0at latest[anthropic],[all]→anthropic==0.125.0[vertexai]→ noanthropicin resolutionruff check,ruff format --check,pyright, andpytest testspass (the pre-existing localLLMGW_*env setup errors are identical on main).🤖 Generated with Claude Code