Commit fd2c3f12
Changed files (2)
examples
src
openai
lib
streaming
responses
examples/image_stream.py
@@ -50,4 +50,4 @@ if __name__ == "__main__":
try:
main()
except Exception as error:
- print(f"Error generating image: {error}")
\ No newline at end of file
+ print(f"Error generating image: {error}")
src/openai/lib/streaming/responses/_events.py
@@ -31,11 +31,9 @@ from ....types.responses import (
ResponseAudioTranscriptDoneEvent,
ResponseAudioTranscriptDeltaEvent,
ResponseMcpCallArgumentsDoneEvent,
- ResponseReasoningSummaryDoneEvent,
ResponseImageGenCallCompletedEvent,
ResponseMcpCallArgumentsDeltaEvent,
ResponseMcpListToolsCompletedEvent,
- ResponseReasoningSummaryDeltaEvent,
ResponseImageGenCallGeneratingEvent,
ResponseImageGenCallInProgressEvent,
ResponseMcpListToolsInProgressEvent,
@@ -59,6 +57,8 @@ from ....types.responses import (
ResponseCodeInterpreterCallInProgressEvent,
ResponseCodeInterpreterCallInterpretingEvent,
)
+from ....types.responses.response_reasoning_text_done_event import ResponseReasoningTextDoneEvent
+from ....types.responses.response_reasoning_text_delta_event import ResponseReasoningTextDeltaEvent
TextFormatT = TypeVar(
"TextFormatT",
@@ -137,8 +137,8 @@ ResponseStreamEvent: TypeAlias = Annotated[
ResponseMcpListToolsInProgressEvent,
ResponseOutputTextAnnotationAddedEvent,
ResponseQueuedEvent,
- ResponseReasoningSummaryDeltaEvent,
- ResponseReasoningSummaryDoneEvent,
+ ResponseReasoningTextDeltaEvent,
+ ResponseReasoningTextDoneEvent,
],
PropertyInfo(discriminator="type"),
]