Skip to content
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

modify regex to allow cross-region inference in bedrock #1120

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
modify regex to allow cross-region inference in bedrock (only possibl…
…e for claude models)
  • Loading branch information
1greentangerine committed Oct 1, 2024
commit f67b8a51ed79d425aa5fb4b04dbd0cd491a6a0cd
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class AmazonBedrockChatGenerator:
"""

SUPPORTED_MODEL_PATTERNS: ClassVar[Dict[str, Type[BedrockModelChatAdapter]]] = {
r"anthropic.claude.*": AnthropicClaudeChatAdapter,
r"(.+\.)?anthropic.claude.*": AnthropicClaudeChatAdapter,
r"meta.llama2.*": MetaLlama2ChatAdapter,
r"mistral.*": MistralChatAdapter,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class AmazonBedrockGenerator:
r"ai21.j2.*": AI21LabsJurassic2Adapter,
r"cohere.command-[^r].*": CohereCommandAdapter,
r"cohere.command-r.*": CohereCommandRAdapter,
r"anthropic.claude.*": AnthropicClaudeAdapter,
r"(.+\.)?anthropic.claude.*": AnthropicClaudeAdapter,
r"meta.llama.*": MetaLlamaAdapter,
r"mistral.*": MistralAdapter,
}
Expand Down