From da8b4b071814c6f61544f432fa0087d6ce4616fd Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 27 Sep 2025 16:05:45 -0700 Subject: [PATCH] fix: fix mypy errors --- litellm/types/llms/openai.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.py index 93410410818..3bf4a5c3822 100644 --- a/litellm/types/llms/openai.py +++ b/litellm/types/llms/openai.py @@ -43,9 +43,12 @@ from openai.types.responses.response import ( # Handle OpenAI SDK version compatibility for Text type try: + # fmt: off from openai.types.responses.response_create_params import ( Text as ResponseText, # type: ignore[attr-defined] ) + + # fmt: on except (ImportError, AttributeError): # Fall back to the concrete config type available in all SDK versions from openai.types.responses.response_text_config_param import (