mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
(fix) bedrock region name defaults to None
This commit is contained in:
parent
1eb720e447
commit
6515eef382
1 changed files with 1 additions and 4 deletions
|
@ -194,10 +194,7 @@ def init_bedrock_client(
|
||||||
|
|
||||||
# we need to read region name from env
|
# we need to read region name from env
|
||||||
# I assume majority of users use .env for auth
|
# I assume majority of users use .env for auth
|
||||||
region_name = (
|
region_name = get_secret("AWS_REGION_NAME") # reads env for AWS_REGION_NAME, defaults to None
|
||||||
get_secret("AWS_REGION_NAME") or
|
|
||||||
"us-west-2" # default to us-west-2 if user not specified
|
|
||||||
)
|
|
||||||
client = boto3.client(
|
client = boto3.client(
|
||||||
service_name="bedrock-runtime",
|
service_name="bedrock-runtime",
|
||||||
region_name=region_name,
|
region_name=region_name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue