fix: fix mypy errors

This commit is contained in:
Krrish Dholakia 2025-09-27 16:05:45 -07:00
parent 0560cb5cfe
commit da8b4b0718

View file

@ -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 (