Skip to content

Commit

Permalink
Added mapping to fix CI for #langchain-aws:227. (#27114)
Browse files Browse the repository at this point in the history
Fixes unit tests for `ChatBedrockConverse` in
langchain-ai/langchain-aws#227
  • Loading branch information
3coins authored Oct 4, 2024
1 parent 6cfd1e8 commit 8073146
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/community/tests/unit_tests/load/test_serializable.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ def test_serializable_mapping() -> None:
"chat_models",
"ChatGroq",
),
("langchain_aws", "chat_models", "ChatBedrockConverse"): (
"langchain_aws",
"chat_models",
"ChatBedrockConverse",
),
}
serializable_modules = import_all_modules("langchain")

Expand Down
5 changes: 5 additions & 0 deletions libs/core/langchain_core/load/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,11 @@
"structured",
"StructuredPrompt",
),
("langchain_aws", "chat_models", "ChatBedrockConverse"): (
"langchain_aws",
"chat_models",
"ChatBedrockConverse",
),
}

# Needed for backwards compatibility for old versions of LangChain where things
Expand Down

0 comments on commit 8073146

Please sign in to comment.