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 mypy error
Sameer Kankuted5c8e1997038
diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.pyindex 5d5e305c7e6..7096c1cdf45 100644--- a/litellm/responses/litellm_completion_transformation/transformation.py+++ b/litellm/responses/litellm_completion_transformation/transformation.py@@ -32,6 +32,7 @@ from litellm.types.llms.openai import (OpenAIWebSearchOptions,OpenAIWebSearchUserLocation,OutputTokensDetails,+ Reasoning,ResponseAPIUsage,ResponsesAPIOptionalRequestParams,ResponsesAPIResponse,@@ -181,7 +182,7 @@ class LiteLLMCompletionResponsesConfig:)# Extract reasoning_effort from reasoning parameter- reasoning_effort = None+ reasoning_effort: Optional[Union[Reasoning, str]] = Nonereasoning_param = responses_api_request.get("reasoning")if reasoning_param:if isinstance(reasoning_param, dict):