Fix bedrock llm boto3 client instantiation (#5629)

Same issue as https://github.com/hwchase17/langchain/pull/5574
This commit is contained in:
Sean Morgan 2023-06-02 12:04:49 -07:00 committed by GitHub
parent c5a7a85a4e
commit 949729ff5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ class Bedrock(LLM):
"""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: