core[patch]: support js chat model namespaces (#26688)

This commit is contained in:
Bagatur 2024-09-19 16:14:20 -07:00 committed by GitHub
parent c453b76579
commit f7bb3640f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1031,4 +1031,19 @@ _JS_SERIALIZABLE_MAPPING: dict[tuple[str, ...], tuple[str, ...]] = {
"chat_models",
"ChatBedrock",
),
("langchain", "chat_models", "google_genai", "ChatGoogleGenerativeAI"): (
"langchain_google_genai",
"chat_models",
"ChatGoogleGenerativeAI",
),
("langchain", "chat_models", "groq", "ChatGroq"): (
"langchain_groq",
"chat_models",
"ChatGroq",
),
("langchain", "chat_models", "bedrock", "BedrockChat"): (
"langchain_aws",
"chat_models",
"ChatBedrock",
),
}