Skip to content

Commit

Permalink
Set default region from boto3 session for Bedrock (langchain-ai#13694)
Browse files Browse the repository at this point in the history
- **Description:** Set default region from boto3 session for Bedrock 
- **Issue:** langchain-ai#13683
  • Loading branch information
Falydoor authored Nov 29, 2023
1 parent 1a33e5b commit 926d4cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain/langchain/llms/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def validate_environment(cls, values: Dict) -> Dict:
values,
"region_name",
"AWS_DEFAULT_REGION",
default=None,
default=session.region_name,
)

client_params = {}
Expand Down

0 comments on commit 926d4cf

Please sign in to comment.