diff --git a/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py b/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py index df57d8b8521..669b074e896 100644 --- a/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py +++ b/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py @@ -629,10 +629,7 @@ class LiteLLMAnthropicMessagesAdapter: if len(tool_calls) > 0: assistant_message["tool_calls"] = tool_calls if len(thinking_blocks) > 0 and ( - model is None - or LiteLLMAnthropicMessagesAdapter.is_anthropic_claude_model( - model - ) + model is None or LiteLLMAnthropicMessagesAdapter.is_anthropic_claude_model(model) ): assistant_message["thinking_blocks"] = thinking_blocks elif len(thinking_blocks) == 0: