Skip to content

RealtimeResponse's status property can also be in_progress #2378

Closed
@jverkoey

Description

@jverkoey

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

The current definition of status allows the following literals:

status: Optional[Literal["completed", "cancelled", "failed", "incomplete"]] = None

but in_progress is also a valid response, as seen in this response packet:

{"event_id":"event_ABC","response":{"id":"resp_123","conversation_id":"conv_456","max_output_tokens":4096,"metadata":null,"modalities":["audio","text"],"object":"realtime.response","output":[],"output_audio_format":"pcm16","status":"in_progress","status_details":null,"temperature":0.8,"usage":null,"voice":"alloy"},"type":"response.created"}

To Reproduce

Use the realtime api.

Code snippets

OS

macOS 15.4 Beta (24E5238a)

Python version

Python v3.11

Library version

v1.78.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions