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
Replace summary param as detailed
Sameer Kankute0f8e4364d609
diff --git a/litellm/completion_extras/litellm_responses_transformation/transformation.py b/litellm/completion_extras/litellm_responses_transformation/transformation.pyindex 9511537f72b..3fb69f97fdf 100644--- a/litellm/completion_extras/litellm_responses_transformation/transformation.py+++ b/litellm/completion_extras/litellm_responses_transformation/transformation.py@@ -693,17 +693,17 @@ class LiteLLMResponsesTransformationHandler(CompletionTransformationBridge):# If string is passed, map with summary="concise"if reasoning_effort == "none":- return Reasoning(effort="none", summary="concise") # type: ignore+ return Reasoning(effort="none", summary="detailed") # type: ignoreelif reasoning_effort == "high":- return Reasoning(effort="high", summary="concise")+ return Reasoning(effort="high", summary="detailed")elif reasoning_effort == "xhigh":- return Reasoning(effort="xhigh", summary="concise") # type: ignore[typeddict-item]+ return Reasoning(effort="xhigh", summary="detailed") # type: ignore[typeddict-item]elif reasoning_effort == "medium":- return Reasoning(effort="medium", summary="concise")+ return Reasoning(effort="medium", summary="detailed")elif reasoning_effort == "low":- return Reasoning(effort="low", summary="concise")+ return Reasoning(effort="low", summary="detailed")elif reasoning_effort == "minimal":- return Reasoning(effort="minimal", summary="concise")+ return Reasoning(effort="minimal", summary="detailed")return Nonedef _transform_response_format_to_text_format(diff --git a/tests/test_litellm/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py b/tests/test_litellm/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.pyindex 77ac0742161..6490352c39b 100644--- a/tests/test_litellm/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py+++ b/tests/test_litellm/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py@@ -1030,7 +1030,7 @@ def test_map_reasoning_effort_adds_summary_detailed():assert result is not None, f"Result should not be None for effort={effort}"assert result["effort"] == effort, f"Effort should be {effort}"- assert result["summary"] == "concise", f"Summary should be 'detailed' for effort={effort}"+ assert result["summary"] == "detailed", f"Summary should be 'detailed' for effort={effort}"print(f"✓ reasoning_effort='{effort}' correctly maps to effort='{effort}', summary='detailed'")