Skip to content

Commit

Permalink
Fix bedrock llm boto3 client instantiation (langchain-ai#5629)
Browse files Browse the repository at this point in the history
Same issue as langchain-ai#5574
  • Loading branch information
Sean Morgan authored and Undertone0809 committed Jun 19, 2023
1 parent 6a21bcd commit 7f729e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/llms/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def validate_environment(cls, values: Dict) -> Dict:
"""Validate that AWS credentials to and python package exists in environment."""

# Skip creating new client if passed in constructor
if "client" in values:
if values["client"] is not None:
return values

try:
Expand Down

0 comments on commit 7f729e5

Please sign in to comment.