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]

chore(responses/mcp): drop explanatory comments per repo policy

mateofae91c2a1137
diff --git a/litellm/responses/mcp/litellm_proxy_mcp_handler.py b/litellm/responses/mcp/litellm_proxy_mcp_handler.py
index 6271c5888db..33ca99c1a7e 100644
--- a/litellm/responses/mcp/litellm_proxy_mcp_handler.py
+++ b/litellm/responses/mcp/litellm_proxy_mcp_handler.py
@@ -1032,7 +1032,6 @@ class LiteLLM_Proxy_MCP_Handler:
}
)
- # Reasoning items must precede the function calls they produced
if preserve_reasoning:
follow_up_input.extend(LiteLLM_Proxy_MCP_Handler._extract_reasoning_items(response))
diff --git a/tests/test_litellm/responses/mcp/test_litellm_proxy_mcp_handler.py b/tests/test_litellm/responses/mcp/test_litellm_proxy_mcp_handler.py
index f08666f7b0d..dbb3ad9fd44 100644
--- a/tests/test_litellm/responses/mcp/test_litellm_proxy_mcp_handler.py
+++ b/tests/test_litellm/responses/mcp/test_litellm_proxy_mcp_handler.py
@@ -701,7 +701,6 @@ def test_create_follow_up_input_preserves_reasoning_when_stateless():
"summary": [],
"encrypted_content": "gAAAAA-opaque-blob",
}
- # the reasoning item has to come before the function call it produced
assert follow_up[2] == {
"type": "function_call",
"call_id": "call-1",