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]

add support for reasoning_effort minimal (#13401)

Low Jian Sheng7f55bbc296d7
diff --git a/litellm/completion_extras/litellm_responses_transformation/transformation.py b/litellm/completion_extras/litellm_responses_transformation/transformation.py
index f35510e41ba..5f732fc5219 100644
--- a/litellm/completion_extras/litellm_responses_transformation/transformation.py
+++ b/litellm/completion_extras/litellm_responses_transformation/transformation.py
@@ -460,6 +460,8 @@ class LiteLLMResponsesTransformationHandler(CompletionTransformationBridge):
return Reasoning(effort="medium", summary="auto")
elif reasoning_effort == "low":
return Reasoning(effort="low", summary="auto")
+ elif reasoning_effort == "minimal":
+ return Reasoning(effort="minimal", summary="auto")
return None
def _map_responses_status_to_finish_reason(self, status: Optional[str]) -> str:
diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.py
index bc3cfeee6a3..f2f64fa3c5d 100644
--- a/litellm/types/llms/openai.py
+++ b/litellm/types/llms/openai.py
@@ -1302,7 +1302,7 @@ ResponsesAPIStreamingResponse = Annotated[
]
-REASONING_EFFORT = Literal["low", "medium", "high"]
+REASONING_EFFORT = Literal["minimal", "low", "medium", "high"]
class OpenAIRealtimeStreamSession(TypedDict, total=False):