mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-21 02:17:12 +00:00
Fix bedrock auth validation (#5574)
https://github.com/hwchase17/langchain/pull/5523 has a small bug if client was not passed in constructor
This commit is contained in:
parent
6258f72a00
commit
8441cff1d7
@ -69,7 +69,7 @@ class BedrockEmbeddings(BaseModel, Embeddings):
|
|||||||
def validate_environment(cls, values: Dict) -> Dict:
|
def validate_environment(cls, values: Dict) -> Dict:
|
||||||
"""Validate that AWS credentials to and python package exists in environment."""
|
"""Validate that AWS credentials to and python package exists in environment."""
|
||||||
|
|
||||||
if "client" in values:
|
if values["client"] is not None:
|
||||||
return values
|
return values
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user