From 49dca4996c2096d8d5bba1ab5e1f10028f221abf Mon Sep 17 00:00:00 2001 From: yassin Date: Wed, 19 Aug 2026 19:31:19 +0000 Subject: [PATCH] fix(search): point the AgentCore region error at AWS_DEFAULT_REGION boto3's session resolution ignores AWS_REGION, so an operator following the old message still hit the same failure. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/llms/bedrock/search/transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/bedrock/search/transformation.py b/litellm/llms/bedrock/search/transformation.py index 85c5818031b..80e20d00ff9 100644 --- a/litellm/llms/bedrock/search/transformation.py +++ b/litellm/llms/bedrock/search/transformation.py @@ -331,7 +331,7 @@ class AgentCoreSearchConfig(BaseSearchConfig, BaseAWSLLM): return configured_region raise ValueError( f"Cannot derive the SigV4 signing region from api_base '{api_base}' " - "or the AWS configuration chain. Set aws_region_name (or AWS_REGION / " + "or the AWS configuration chain. Set aws_region_name (or AWS_DEFAULT_REGION / " "a profile region) to the gateway's region when using a custom hostname." )