Skip to content

Commit fd2c3f1

Browse files
dtmeadowsstainless-app[bot]
authored andcommitted
fix(internal): correct event imports
1 parent b0ad27a commit fd2c3f1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/image_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ def main() -> None:
5050
try:
5151
main()
5252
except Exception as error:
53-
print(f"Error generating image: {error}")
53+
print(f"Error generating image: {error}")

src/openai/lib/streaming/responses/_events.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@
3131
ResponseAudioTranscriptDoneEvent,
3232
ResponseAudioTranscriptDeltaEvent,
3333
ResponseMcpCallArgumentsDoneEvent,
34-
ResponseReasoningSummaryDoneEvent,
3534
ResponseImageGenCallCompletedEvent,
3635
ResponseMcpCallArgumentsDeltaEvent,
3736
ResponseMcpListToolsCompletedEvent,
38-
ResponseReasoningSummaryDeltaEvent,
3937
ResponseImageGenCallGeneratingEvent,
4038
ResponseImageGenCallInProgressEvent,
4139
ResponseMcpListToolsInProgressEvent,
@@ -59,6 +57,8 @@
5957
ResponseCodeInterpreterCallInProgressEvent,
6058
ResponseCodeInterpreterCallInterpretingEvent,
6159
)
60+
from ....types.responses.response_reasoning_text_done_event import ResponseReasoningTextDoneEvent
61+
from ....types.responses.response_reasoning_text_delta_event import ResponseReasoningTextDeltaEvent
6262

6363
TextFormatT = TypeVar(
6464
"TextFormatT",
@@ -137,8 +137,8 @@ class ResponseCompletedEvent(RawResponseCompletedEvent, GenericModel, Generic[Te
137137
ResponseMcpListToolsInProgressEvent,
138138
ResponseOutputTextAnnotationAddedEvent,
139139
ResponseQueuedEvent,
140-
ResponseReasoningSummaryDeltaEvent,
141-
ResponseReasoningSummaryDoneEvent,
140+
ResponseReasoningTextDeltaEvent,
141+
ResponseReasoningTextDoneEvent,
142142
],
143143
PropertyInfo(discriminator="type"),
144144
]

0 commit comments

Comments
 (0)