Skip to content

response.reasoning_summary_text.delta incorrectly uses ResponseAudioDeltaEvent #2311

Description

@simonw

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions