ChatAnthropic Compatibility with Anthropic Bedrock SDK (from anthropic import AnthropicBedrock) #31997
bibibibibit
announced in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Please align the ChatAnthropic API interface with Anthropic's official Bedrock API implementation to ensure complete compatibility between the two services.
Motivation
Anthropic's official SDK provides an elegant solution where developers can switch between direct API access and AWS Bedrock by simply changing the client initialization.
https://docs.anthropic.com/en/api/claude-on-amazon-bedrock#accessing-bedrock
However, LangChain's current implementations of ChatAnthropic and ChatBedrock require different parameter structures for:
This forces developers to maintain different code paths depending on which backend is being used, eliminating the clean abstraction that Anthropic's SDK provides.
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions