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]

refactor

eycjur6eb1b40336b8
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):