Forward GPT-Live voice calls to the ChatGPT realtime/calls endpoint - #21
Open
fancyspace78 wants to merge 2 commits into
Open
Forward GPT-Live voice calls to the ChatGPT realtime/calls endpoint#21fancyspace78 wants to merge 2 commits into
fancyspace78 wants to merge 2 commits into
Conversation
fancyspace78
marked this pull request as ready for review
August 18, 2026 12:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The router now forwards the ChatGPT desktop app's GPT-Live voice calls.
POST /v1/livebodies (amultipart/form-datapayload with ansdppart and a JSONsessionpart) are parsed and re-encoded as the official JSON shape{"sdp": "...", "session": {...}}, then sent tochatgpt.com/backend-api/codex/realtime/calls.To match the official client's request shape, the forwarded request includes:
intent=quicksilver&architecture=avasOpenAI-Alpha: quicksilver=v2(the backend gate rejects anything else)/responsesNon-multipart
POST /v1/livebodies are still passed through unchanged.Why
Voice in the desktop app is driven by GPT-Live over WebRTC. Because the app routes all model traffic through the configured
openai_base_url, those call-creation requests reach the router asPOST /v1/live. Before this change the body was treated as JSON and forwarded to/backend-api/codex/v1/live, so voice failed with a series of upstream 400/403/404 responses. DeepSeek routing and the existingprefer_websockets = falseupgrade handling (426) are unchanged; voice is never routed to DeepSeek.Validation
npm test: 88 pass, 2 skipped, 0 fail, including new tests for the multipart→JSON conversion, the single-path mapping, and the AVAS query/header injectionTested environment
chatgpt.comthrough it, and voice completes end-to-end in that setupDocs
Updated
AGENTS.mdand both READMEs so Voice is no longer described as an unrouted client-side feature.