From fd16937ad80bdf36298b811002f7e0526c8e7414 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 c895679f16a..99e2a8ffe41 100644 --- a/litellm/llms/bedrock_httpx.py +++ b/litellm/llms/bedrock_httpx.py @@ -307,6 +307,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