From c423a318b9246c9466f8cad57bfa1300d3c42e97 Mon Sep 17 00:00:00 2001 From: Colin Lin Date: Wed, 22 Apr 2026 10:59:09 -0400 Subject: [PATCH] [stripe] add opus 4.7 tool search beta header for bedrock --- .../anthropic_claude3_transformation.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 96593b35d0c..72b9f46fa09 100644 --- a/litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py +++ b/litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py @@ -356,10 +356,11 @@ class AmazonAnthropicClaudeMessagesConfig( "sonnet_4.6", "sonnet-4-6", "sonnet_4_6", - # 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. + # Opus 4.7 + "opus-4.7", + "opus_4.7", + "opus-4-7", + "opus_4_7", ] return any(pattern in model_lower for pattern in supported_patterns)