From 7faf0b95861710b81ea11ce9582155ba16016f68 Mon Sep 17 00:00:00 2001 From: David Manouchehri Date: Sat, 1 Jun 2024 01:52:06 +0000 Subject: [PATCH] fix(bedrock_httpx.py): Fix STS region endpoint. --- litellm/llms/bedrock_httpx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/llms/bedrock_httpx.py b/litellm/llms/bedrock_httpx.py index 0c1e7c06fad..6d4c04fb1c6 100644 --- a/litellm/llms/bedrock_httpx.py +++ b/litellm/llms/bedrock_httpx.py @@ -348,6 +348,7 @@ class BedrockLLM(BaseLLM): sts_client = boto3.client( "sts", region_name=aws_region_name, + endpoint_url=f"https://sts.{aws_region_name}.amazonaws.com" ) # https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html