Skip to content

fix(openai_mllm_python): migrate Realtime WebSocket client from beta to GA API#2167

Open
nitte93 wants to merge 1 commit into
TEN-framework:mainfrom
nitte93:main
Open

fix(openai_mllm_python): migrate Realtime WebSocket client from beta to GA API#2167
nitte93 wants to merge 1 commit into
TEN-framework:mainfrom
nitte93:main

Conversation

@nitte93
Copy link
Copy Markdown

@nitte93 nitte93 commented May 21, 2026

Title
Migrate openai_mllm_python from deprecated Realtime API beta to GA

Summary
Updates the openai_mllm_python extension to use OpenAI’s GA Realtime API. The beta interface (OpenAI-Beta: realtime=v1) was removed on 2026-05-12; this change keeps the existing extension API and config fields while aligning WebSocket protocol behavior with the beta-to-GA migration guide.

Connection: Stop sending the deprecated OpenAI-Beta: realtime=v1 header on OpenAI WebSocket connections.
Server events: Listen for GA event type strings (response.output_audio.delta, response.output_text.delta, response.output_audio_transcript.delta, and matching .done events). Internal enum/class names are unchanged.
Session updates: Serialize session.update to the GA shape (session.type: "realtime", nested audio.input / audio.output, output_modalities, max_output_tokens) via a small mapper so existing SessionUpdateParams fields (modalities, voice, turn_detection, input_audio_transcription, etc.) stay the same in code.
No WebRTC or client_secrets changes — this extension uses server-side WebSocket with an API key, which remains supported on GA.

Motivation
Without this migration, connections and event handling can fail against the current Realtime API after beta shutdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant