[BugFix] Fix leftovers of the legacy OpenAI realtime API event names (#7426)

Signed-off-by: Nick Cao <ncao@redhat.com>
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Nick CaoandCodex authored and GitHub committed 2026-09-11 22:28:55 +08:00
1 parent 78e1a0ae5c
commit d3493384cf
10 files changed
+103 -48

No files matched your search

@@ -21,8 +21,8 @@ Protocol:
{"type": "response.start"}
{"type": "response.text.delta", "delta": "..."}
{"type": "response.text.done", "text": "..."}
{"type": "response.audio.delta", "data": "...", "format": "wav"}
{"type": "response.audio.done"}
{"type": "response.output_audio.delta", "data": "...", "format": "wav"}
{"type": "response.output_audio.done"}
{"type": "session.done"}
{"type": "error", "message": "..."}
"""
@@ -763,7 +763,7 @@ class OmniStreamingVideoHandler:
if b64:
await websocket.send_json(
{
"type": "response.audio.delta",
"type": "response.output_audio.delta",
"data": b64,
"format": "wav",
}
@@ -807,7 +807,7 @@ class OmniStreamingVideoHandler:
if b64:
await websocket.send_json(
{
"type": "response.audio.delta",
"type": "response.output_audio.delta",
"data": b64,
"format": "wav",
}
@@ -816,7 +816,7 @@ class OmniStreamingVideoHandler:
logger.exception("Failed to coalesce off-path audio")
if audio_chunk_count > 0:
await websocket.send_json({"type": "response.audio.done"})
await websocket.send_json({"type": "response.output_audio.done"})
response_text = "".join(text_parts)
self.on_turn_complete(message_history, user_message, response_text)