mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 03:01:29 +00:00
Fix bedrock llm boto3 client instantiation (#5629)
Same issue as https://github.com/hwchase17/langchain/pull/5574
This commit is contained in:
parent
c5a7a85a4e
commit
949729ff5c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user