Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

RealtimeResponse's status property can also be in_progress #2378

Copy link
Copy link
Closed
@jverkoey

Description

@jverkoey
Issue body actions

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 workingSomething isn't workingopenapi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.