From d5c8e199703856cbffc5307911bde00fa17784a2 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Fri, 17 Apr 2026 18:58:35 +0530 Subject: [PATCH] Fix mypy error --- .../litellm_completion_transformation/transformation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.py index 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]] = None reasoning_param = responses_api_request.get("reasoning") if reasoning_param: if isinstance(reasoning_param, dict):