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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(converse_transformation.py): correctly transform reasoning_effort for gpt-oss models
Krrish Dholakia9c6dc3c47a28
diff --git a/litellm/llms/bedrock/chat/converse_transformation.py b/litellm/llms/bedrock/chat/converse_transformation.pyindex e06f92a8380..06b2098fe38 100644--- a/litellm/llms/bedrock/chat/converse_transformation.py+++ b/litellm/llms/bedrock/chat/converse_transformation.py@@ -473,12 +473,12 @@ class AmazonConverseConfig(BaseConfig):if "gpt-oss" in model:# GPT-OSS models: keep reasoning_effort as-is# It will be passed through to additionalModelRequestFields- continue-- # Anthropic and other models: convert to thinking parameter- optional_params["thinking"] = AnthropicConfig._map_reasoning_effort(- value- )+ optional_params["reasoning_effort"] = value+ else:+ # Anthropic and other models: convert to thinking parameter+ optional_params["thinking"] = AnthropicConfig._map_reasoning_effort(+ value+ )# Only update thinking tokens for non-GPT-OSS modelsif "gpt-oss" not in model: