From 6eb1b40336b86a99bbcec297b18e5ac2b44f0032 Mon Sep 17 00:00:00 2001 From: eycjur Date: Sat, 6 Sep 2025 21:30:08 +0900 Subject: [PATCH] refactor --- litellm/llms/bedrock/chat/converse_transformation.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/litellm/llms/bedrock/chat/converse_transformation.py b/litellm/llms/bedrock/chat/converse_transformation.py index 9e885b3f839..080ec05576e 100644 --- a/litellm/llms/bedrock/chat/converse_transformation.py +++ b/litellm/llms/bedrock/chat/converse_transformation.py @@ -466,13 +466,12 @@ class AmazonConverseConfig(BaseConfig): if "gpt-oss" in model: # GPT-OSS models: keep reasoning_effort as-is # It will be passed through to additionalModelRequestFields - optional_params["reasoning_effort"] = value continue - else: - # Anthropic and other models: convert to thinking parameter - optional_params["thinking"] = AnthropicConfig._map_reasoning_effort( - value - ) + + # Anthropic and other models: convert to thinking parameter + optional_params["thinking"] = AnthropicConfig._map_reasoning_effort( + value + ) # Only update thinking tokens for non-GPT-OSS models if not ("gpt-oss" in model):