The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community: fixed KeyError: 'client' (#27345)
Max Tran8fea07f92e5c
diff --git a/libs/community/langchain_community/llms/bedrock.py b/libs/community/langchain_community/llms/bedrock.pyindex a0de3fb81e..4c5fbdc476 100644--- a/libs/community/langchain_community/llms/bedrock.py+++ b/libs/community/langchain_community/llms/bedrock.py@@ -396,7 +396,7 @@ class BedrockBase(BaseModel, ABC):"""Validate that AWS credentials to and python package exists in environment."""# Skip creating new client if passed in constructor- if values["client"] is not None:+ if values.get("client") is not None:return valuestry: