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]

openai types

Ishaan Jaffer9569b9836624
diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.py
index 33607ad933d..93410410818 100644
--- a/litellm/types/llms/openai.py
+++ b/litellm/types/llms/openai.py
@@ -44,7 +44,7 @@ from openai.types.responses.response import (
# Handle OpenAI SDK version compatibility for Text type
try:
from openai.types.responses.response_create_params import (
- Text as ResponseText, # type: ignore
+ Text as ResponseText, # type: ignore[attr-defined]
)
except (ImportError, AttributeError):
# Fall back to the concrete config type available in all SDK versions