fix: bound langchain-anthropic<1.7.0 in uipath-langchain-client - #132
Merged
Merged
Conversation
langchain-anthropic 1.7.0 changed the private _create/_acreate contract to raw responses, breaking every UiPathChatAnthropic operation. Bound <1.7.0 on the anthropic extra and explicitly on the bedrock extra (previously unbounded there via langchain-aws[anthropic]). Interim pin until the overrides adopt the new contract. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
andreibalas-uipath
requested review from
DragosBobolea,
cosminacho,
cristipufu,
dragosvelcea,
ionmincu,
ionut-mihalache-uipath,
radu-mocanu and
vldcmp-uipath
as code owners
September 1, 2026 11:11
radu-mocanu
approved these changes
Sep 1, 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
Interim hotfix (follow-up to the 1.18.1
anthropic<1.0.0bedrock pin, #130 — second incompatibility from the same dependency-drift event):langchain-anthropic>=1.4.1,<1.7.0on theanthropicextra.bedrockextra, which previously admitted it unbounded vialangchain-aws[anthropic].uipath-langchain-clientto 1.18.2, changelog entry, regenerated lockfile (metadata-only diff; locked version stays 1.4.1).langchain-anthropic 1.7.0 (2026-08-27) changed the private
_create/_acreatecontract to raw responses (with_raw_response.create+raw_response.parse()).UiPathChatAnthropicoverrides those methods with the ≤1.6.1-style bodies, so under 1.7.0 every operation fails with'Message'/'Stream'/'AsyncStream' object has no attribute 'parse'. Evidence: the uipath-langchain-python chat-models integration suite fails on exactly theUiPathChatAnthropicsection on all environments (run).This pin is interim — to be reverted when the
_create/_acreateoverrides adopt the raw-response contract and the floor moves to>=1.7.0(tracked separately). No Python code changes.Affected packages
uipath-langchain-clientonly (1.18.1 → 1.18.2). Core untouched.Verification
[anthropic],[bedrock], and[all]against PyPI lands onlangchain-anthropic==1.6.1+anthropic==0.125.0, no conflicts. The other extras pull no anthropic packages.ruff check,ruff format,pyrightpass; full test suite passes (2080 passed), including the Anthropic chat-model tests run explicitly against langchain-anthropic 1.6.1.🤖 Generated with Claude Code