Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(search): point the AgentCore region error at AWS_DEFAULT_REGION

yassin49dca4996c20
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."
)