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]

opus 4.7 doesn't support tool search

Sameer Kankutefb33daa09f00
diff --git a/litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py b/litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py
index eb7e00876a6..43dcb87c4d3 100644
--- a/litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py
+++ b/litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py
@@ -285,11 +285,10 @@ class AmazonAnthropicClaudeMessagesConfig(
"sonnet_4.6",
"sonnet-4-6",
"sonnet_4_6",
- # Opus 4.7
- "opus-4.7",
- "opus_4.7",
- "opus-4-7",
- "opus_4_7",
+ # NOTE: Opus 4.7 on Bedrock does not support server-side tool search
+ # as of launch (2026-04-16). Bedrock rejects the tool type with:
+ # "tool type 'tool_search_tool_..._20251119' is not supported for this model".
+ # Re-add the opus-4.7 patterns here once AWS announces support.
]
return any(pattern in model_lower for pattern in supported_patterns)