mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 23:13:31 +00:00
Fix bedrock llm boto3 client instantiation (#5629)
Same issue as https://github.com/hwchase17/langchain/pull/5574
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user