-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(community): Add support for Bedrock cross-region inference models #187
Conversation
Can you please check here, @efriis 👆🏼, Thanks in advance 🙏🏼 |
@3coins if there's another approach for detecting the cross-region strings that would be more tolerant if other regions get added, please comment! |
@keremnalbant @efriis eu.anthropic.claude-3-5-sonnet-20240620-v1:0 # has 3 parts after splitting
anthropic.claude-3-5-sonnet-20240620-v1:0 # has 2 parts after splitting |
Yes, but this is not really safe if we are looking for safety as they can pass anything as the first part. Currently supported regions are just those I've added, please visit the link to view AWS Bedrock Documentation. However this will require extra effort if new regions get supported by AWS. I can add every region in AWS to overcome.
|
@3coins please see the commit which adds all AWS regions. |
@3coins could you please review |
@keremnalbant |
Closing this in favor of #242. |
Merged for
LangChainJS
: langchain-ai/langchainjs#6682Closed PR as the
Bedrock
is deprecated inlangchain-core
: langchain-ai/langchain#26038Hey, I recently I switched using to Bedrock Inference models.
With Inference models, Amazon introduced a new prefix which is a region code. If the
modelId
previously wasanthropic.claude-3-5-sonnet-20240620-v1:0
now, with the change it'seu.anthropic.claude-3-5-sonnet-20240620-v1:0
This PR adds:
Fixes #186