-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Confirm this is an issue with the Python library and not an underlying OpenAI API
- This is an issue with the Python library
Describe the bug
Using Responses API + Streaming seems to be broken with an ImportError:
Response = await openai.responses.create(^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.13/functools.py", line 1026, in __get__val = self.func(instance)
File "/opt/venv/lib/python3.13/site-packages/openai/_client.py", line 572, in responsesfrom .resources.responses import AsyncResponsesFile "/opt/venv/lib/python3.13/site-packages/openai/resources/responses/__init__.py", line 3, in <module>from .responses import (...<6 lines>...)
File "/opt/venv/lib/python3.13/site-packages/openai/resources/responses/responses.py", line 40, in <module>from ...lib.streaming.responses._responses import ResponseStreamManager, AsyncResponseStreamManagerFile "/opt/venv/lib/python3.13/site-packages/openai/lib/streaming/responses/__init__.py", line 1, in <module>from ._events import (...<3 lines>...)
File "/opt/venv/lib/python3.13/site-packages/openai/lib/streaming/responses/_events.py", line 8, in <module>from ....types.responses import (...<52 lines>...)ImportError: cannot import name 'ResponseReasoningSummaryDoneEvent' from 'openai.types.responses' (/opt/venv/lib/python3.13/site-packages/openai/types/responses/__init__.py)
To Reproduce
response = await openai.responses.create(
stream=stream,
model=self._model,
input=context.messages,
tools=open_ai_tools,
text=text,
previous_response_id=previous_response_id,
**response_options,
)
Code snippets
OS
linux
Python version
3.13
Library version
1.99.0
Wilker, Edim, OrestesK and 0thernet
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working