openai types
This commit is contained in:
parent
66ca61c6e7
commit
9569b98366
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user