From 4f5a7a3d54819df51efe8957d193571b607c4bf5 Mon Sep 17 00:00:00 2001 From: Chris Volzer Date: Wed, 18 Mar 2026 17:39:31 -0400 Subject: [PATCH] fix: added thinking and reasoning support for all claude 4+ models on Bedrock --- litellm/llms/anthropic/chat/transformation.py | 4 +++- litellm/llms/bedrock/chat/converse_transformation.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.py index fd1859f7d17..56bef3ffbe1 100644 --- a/litellm/llms/anthropic/chat/transformation.py +++ b/litellm/llms/anthropic/chat/transformation.py @@ -199,7 +199,9 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig): if ( "claude-3-7-sonnet" in model - or AnthropicConfig._is_claude_4_6_model(model) + or "claude-sonnet-4" in model + or "claude-opus-4" in model + or "claude-haiku-4" in model or supports_reasoning( model=model, custom_llm_provider=self.custom_llm_provider, diff --git a/litellm/llms/bedrock/chat/converse_transformation.py b/litellm/llms/bedrock/chat/converse_transformation.py index 7dd32b99bc0..19168f74ad3 100644 --- a/litellm/llms/bedrock/chat/converse_transformation.py +++ b/litellm/llms/bedrock/chat/converse_transformation.py @@ -566,6 +566,7 @@ class AmazonConverseConfig(BaseConfig): "claude-3-7" in model or "claude-sonnet-4" in model or "claude-opus-4" in model + or "claude-haiku-4" in model or "deepseek.r1" in model or supports_reasoning( model=model,