Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
In the streaming output the response.reasoning_summary_text.delta event is represented using ResponseAudioDeltaEvent for some reason.
To Reproduce
Try running this (STR created with the help of o4-mini):
python -c 'import openai,os
for event in openai.OpenAI(api_key=os.getenv("OPENAI_API_KEY")).responses.create(
model="o3",
input=[{"role":"user","content":"Why is the sky blue?"}],
reasoning={"summary":"auto"},
stream=True,
):
print(event)'
The output includes lines like this:
ResponseAudioDeltaEvent(delta='**Expl', type='response.reasoning_summary_text.delta', item_id='rs_680044dcbd9881918572b2b1a63ca6a903b0150bf71ce6fa', output_index=0, summary_index=0)
ResponseAudioDeltaEvent looks wrong. Something like ResponseReasoningSummaryDeltaEvent would make more sense.
OS
macOS
Python version
Python 3.13.2
Library version
openai==1.75.0
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
In the streaming output the
response.reasoning_summary_text.deltaevent is represented usingResponseAudioDeltaEventfor some reason.To Reproduce
Try running this (STR created with the help of o4-mini):
The output includes lines like this:
ResponseAudioDeltaEventlooks wrong. Something likeResponseReasoningSummaryDeltaEventwould make more sense.OS
macOS
Python version
Python 3.13.2
Library version
openai==1.75.0