Skip to content

Commit

Permalink
Fix bedrock auth validation (#5574)
Browse files Browse the repository at this point in the history
#5523 has a small bug if
client was not passed in constructor
  • Loading branch information
Sean Morgan authored Jun 1, 2023
1 parent 6258f72 commit 8441cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/embeddings/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Config:
def validate_environment(cls, values: Dict) -> Dict:
"""Validate that AWS credentials to and python package exists in environment."""

if "client" in values:
if values["client"] is not None:
return values

try:
Expand Down

0 comments on commit 8441cff

Please sign in to comment.