mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 14:43:07 +00:00
fix(langchain): support anthropic-bedrock in init_chat_model (#35366)
This commit is contained in:
@@ -37,6 +37,7 @@ def _call(cls: type[BaseChatModel], **kwargs: Any) -> BaseChatModel:
|
||||
|
||||
_BUILTIN_PROVIDERS: dict[str, tuple[str, str, Callable[..., BaseChatModel]]] = {
|
||||
"anthropic": ("langchain_anthropic", "ChatAnthropic", _call),
|
||||
"anthropic_bedrock": ("langchain_anthropic", "ChatAnthropicBedrock", _call),
|
||||
"azure_ai": ("langchain_azure_ai.chat_models", "AzureAIChatCompletionsModel", _call),
|
||||
"azure_openai": ("langchain_openai", "AzureChatOpenAI", _call),
|
||||
"bedrock": ("langchain_aws", "ChatBedrock", _call),
|
||||
@@ -260,6 +261,7 @@ def init_chat_model(
|
||||
|
||||
- `openai` -> [`langchain-openai`](https://docs.langchain.com/oss/python/integrations/providers/openai)
|
||||
- `anthropic` -> [`langchain-anthropic`](https://docs.langchain.com/oss/python/integrations/providers/anthropic)
|
||||
- `anthropic_bedrock` -> [`langchain-anthropic`](https://docs.langchain.com/oss/python/integrations/providers/anthropic)
|
||||
- `azure_openai` -> [`langchain-openai`](https://docs.langchain.com/oss/python/integrations/providers/openai)
|
||||
- `azure_ai` -> [`langchain-azure-ai`](https://docs.langchain.com/oss/python/integrations/providers/microsoft)
|
||||
- `google_vertexai` -> [`langchain-google-vertexai`](https://docs.langchain.com/oss/python/integrations/providers/google)
|
||||
|
||||
Reference in New Issue
Block a user