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
style(typing): format reasoning extraction
Devin AIcb2f5c664163
diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.pyindex db12361f70f..3cc8db3f357 100644--- a/litellm/responses/litellm_completion_transformation/transformation.py+++ b/litellm/responses/litellm_completion_transformation/transformation.py@@ -1298,9 +1298,7 @@ class LiteLLMCompletionResponsesConfig:text_parts: Final = tuple(text.strip()for block in summary- if isinstance(block, Mapping)- and isinstance(text := block.get("text"), str)- and text.strip()+ if isinstance(block, Mapping) and isinstance(text := block.get("text"), str) and text.strip())return "\n".join(text_parts) if text_parts else None