Repository navigation
docs: move audio, realtime, TTS and transcription examples to OpenAI models with no shutdown date - #3146
Merged
mateo-berri merged 8 commits intoNov 20, 2026
Conversation
…models with no shutdown date
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…m pricing example
|
@mateo-berri is attempting to deploy a commit to the Berri AI Team on Vercel. A member of the Team first needs to authorize it. |
… models bridge beta clients
This branch was successfully deployed
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.
OpenAI shuts down tts-1, tts-1-hd and gpt-4o-mini-tts on 2027-01-06, gpt-realtime, gpt-realtime-mini, gpt-audio and gpt-audio-mini on 2027-01-20, and whisper-1, gpt-4o-transcribe and gpt-4o-mini-transcribe on 2027-02-26, per the
shutdown_datein its/v1/models. The audio, realtime, TTS and transcription examples on 14 docs pages call them, and some still call preview models that already return 404This moves those examples to gpt-audio-1.5, gpt-realtime-2.1, tts-1-1106, tts-1-hd-1106 and gpt-transcribe, which have no shutdown date. It also fixes the blocks on those pages that failed when run as written, mostly realtime ones still on the retired beta API
Original
TLDR
Problem this solves:
How it solves it:
User Flow
Before: the copied realtime example fails today, and the TTS and transcription ones fail on their model's shutdown date
openai-gpt-4o-realtime-audiotoopenai/gpt-4o-realtime-preview-2024-10-01, andtest.js, which sendsOpenAI-Beta: realtime=v1node test.jsgpt-4o-audio-previewreturns 404 today, andGET https://api.openai.com/v1/modelsliststts-1with2027-01-06andwhisper-1with2027-02-26After: the copied examples work and keep working past those dates
openai-gpt-realtimetoopenai/gpt-realtime-2.1node test.jsresponse.output_text.doneandresponse.done, andGET https://api.openai.com/v1/modelslists gpt-realtime-2.1, gpt-audio-1.5, tts-1-1106 and gpt-transcribe with no shutdown dateDecisions
Choices made and the alternatives
/v1/modelslists with no shutdown date on 2026-11-19. tts-1 and gpt-4o-mini-tts go to tts-1-1106, tts-1-hd to tts-1-hd-1106, whisper-1, gpt-4o-transcribe and gpt-4o-mini-transcribe to gpt-transcribe, gpt-4o-audio-preview and gpt-audio to gpt-audio-1.5, and every gpt-4o-realtime-preview and gpt-realtime id to gpt-realtime-2.1. These are the picks the litellm repo's own examples made in test(e2e): move audio, realtime, and Langfuse tests off model ids with shutdown dates litellm#51816. gpt-4o-mini-tts takes aninstructionsparam that tts-1-1106 does not, but no example on these pages sends it, and OpenAI lists no steerable TTS model without a shutdown date. gpt-realtime-2.1-mini lost because the examples called the full-size model. OpenAI's deprecations page retires tts-1 and tts-1-hd on 2027-01-06 and names gpt-realtime-2.1-mini as the replacement, which/v1/audio/speechdoes not take, and it has no row for the 1106 snapshots. So tts-1-1106 and tts-1-hd-1106 are the only OpenAI speech models with no date, and they may still stop with tts-1 (see Caveats)whispertogpt-transcribe,ttstotts-1-1106,openai-gpt-4o-realtime-audiotoopenai-gpt-realtime,gpt-4o-realtimetogpt-realtime), and each page's requests send the new alias. The TTS page's config named its aliasttswhile its curl senttts-1, so that pair never worked together. The realtime page'sazure-gpt-4o-realtime-audioentry is gone, since it called the retiredazure/gpt-4o-realtime-previewand would now duplicateazure-gpt-realtimeOpenAI-Beta: realtime=v1header with "The Realtime Beta API is no longer supported", and Azure rejectsrealtime_protocol: betawith "The Realtime preview API is no longer available for this request". Sotest.jsdrops the header and sendsoutput_modalities, the guardrails client listens forresponse.output_audio.delta, the WebRTCsession.updatesendssession.type: "realtime"(OpenAI answers 400 without it), the Azure URL comment uses the/openai/v1/realtimepath, and therealtime_protocolandLITELLM_AZURE_REALTIME_PROTOCOLexamples pinGAwith a sentence that Azure closes a gpt-realtime-2.1 beta session withrealtime_beta_access_required, so a reader should not pinbetafor it. The page now also says LiteLLM sends GA-only models such as gpt-realtime-2.1 to GA for every client, bridging a beta client's events, which the live probe below shows. LiteLLM spots those models by the deployment name inmodelor bybase_model, so the paragraph tells a custom-named deployment to setbase_modelor pinGA, and it carries a v1.110.0 badge since that release added the bridging (feat(realtime)!: support latest OpenAI audio models litellm#35600). The xAI page's clients drop the header too, and its Node client asks foroutput_modalities, since OpenAI answersresponse.modalitieswith "Unknown parameter". The guardrails clients send the GA session shape (type,output_modalities,audio.input.transcription) instead of relying on LiteLLM's beta-to-GA remapvalue. On 1.110.1,/v1/realtime/client_secretsreturnsvalue,expires_atandsessionwith noclient_secretobject, soclient_secret.valuethrew. The site's WebRTC tester component already reads both. Its default model stays as it is on main, since the only page that renders it is the blog postrealtime_webrtc_http_endpoints, whose own config namesgpt-4o-realtime, and this PR leaves blog posts alonegpt-5.5-2026-04-23. The old text said custom prices would not apply to a dated response name unlessbase_modelwas set, but LiteLLM prices a deployment with custom pricing from its ownmodel_info, and live QA billed the custom price with nobase_model. So the section now says that and dropsbase_modelfrom its example. The alternative was keeping abase_modelexample that changes nothing. The audio token prices went too, since gpt-5.5 has no audio tokenstranscription(...)now, since thecompletion(...)it showed on main fails on a file upload. The alternative was keeping the retiring ids until they shut down, which leaves rows that start failing on 2027-01-06edenai/openai/tts-1-1106andedenai/groq/whisper-large-v3-turbo, taken from Eden AI's public model catalog. Eden AI answers 400 "Model(s) not found or inactive" foropenai/whisper-1,openai/gpt-4o-transcribeandopenai/gpt-4o-mini-transcribe, so it serves no OpenAI transcription model todayrequests, the litellm_proxy page's speech call passes the requiredvoice, and the transcription page's SDK block callsOpenAI(...)the way it imports it. The xAI page's Python client passesadditional_headers, since websockets 14 and later rejectextra_headers. The guardrails JavaScript client importsws, since Node's built-in WebSocket does not send theheadersoption and the proxy refused it. The WebRTC example sendssession.updateonce the data channel opens, since Chrome throwsInvalidStateErroron a send before that. The xAI config comment says the second deployment load-balances, since two entries with onemodel_nameshare traffic and do not fall backgpt-audioalias already points at azure/gpt-audio-1.5), realtime_translation.md (gpt-realtime-translate has no shutdown date), azure.md, the Azure AI Speech pass-through page, release notes and blog postsTests
scripts/check-docs.py,scripts/check-writing-style.js,scripts/test_docs_models.pyandscripts/docs-models.test.cjspass at 96ccc18, andnpm run buildpassed at 3afb197Caveats (if any)
Medium
/v1/modelsgives them no shutdown date, but the deprecations page does not list them/v1/audio/speechazure/tts-1. The fix belongs in LiteLLM's speech cost code, which a separate ticket tracksLow
base_modelparagraph has no live run, since Azure refused a new custom-named deploymentScreenshots / Proof of Fix
Last updated: 27fe386, an empty commit after 96ccc18. QA ran on 7f6a509, then on 0b3dc8a, 3afb197 and efc3967 for changed pages, and missing before legs ran on main at 8619aa5. Changes no QA run covered: an xAI YAML comment and the realtime paragraph on GA-only Azure models. Proof remains valid because the proxy ignores YAML comments, and the GA-only check below runs the paragraph's claim on 1.110.1. Verification: docs checks, docs model tests and writing style at 96ccc18
Both legs ran the PyPI
litellm[proxy]1.110.1 wheel with--num_workers 2against real OpenAI, Azure, xAI and Eden AI, with main's examples at 8619aa5 as before and this branch's as after. The WebRTC code ran in headless Chromium 156 with a fake microphone.test.json OpenAIresponse.donewith a replyNameErroronrequestsbase_modelrealtime_beta_access_requiredmodel_not_foundsession.updatedTypeErrorreadingvaluesession.updatedTypeErrorsession.updatedTypeErroronextra_headersresponse.doneerrorresponse.doneopenai/whisper-1whisper-1BufferedReadernot JSON serializableresponse.donebase_modellitellm_proxyspeechvoiceerror onlitellm_proxyNameErroronopenaiHeadline: Realtime
test.json OpenAIBefore, on main's config and
test.jsAfter, on this branch's config and
test.jsOpenAI shutdown dates of the example models
Before
After
Audio chat output
Before
After
Audio chat input and capability checks
Before, main at 8619aa5 (audio.md proxy input-audio block)
After (audio.md proxy audio input (gpt-audio-1.5))
After (audio.md supports_audio checks)
After (audio.md /model/info)
Custom pricing with no `base_model`
Before
After, at 0b3dc8a, with the page's config, which has no
base_modelRealtime on Azure, default and pins
Before, main at 8619aa5 (realtime.md
test.json main'sazure/gpt-realtimedeployment withrealtime_protocol: beta)After (realtime.md test.js against azure-gpt-realtime)
After (realtime.md GA SDK example (azure-gpt-realtime))
After, at 0b3dc8a (realtime.md
test.json azure/gpt-realtime-2.1 withrealtime_protocol: GA)After, at 0b3dc8a (the same with
realtime_protocol: beta, which the page now says Azure closes)Realtime guardrail on spoken injection
The guardrails clients send no audio, so this case streams a spoken prompt with the page's session settings
Before
After, at 0b3dc8a, with the page's GA session settings
Realtime guardrails page clients
Before, main at 8619aa5 (realtime_guardrails.md JavaScript client with event logging appended, then the proxy log)
Before, main at 8619aa5 (realtime_guardrails.md Python client)
After, at 0b3dc8a. The Python client prints events until stopped, so
timeoutends it with 124WebRTC page code in Chromium, OpenAI
Before, main's block on
gpt-4o-realtimeAfter, at 0b3dc8a
WebRTC page code in Chromium, Azure
Before, main's Azure line (
azure/gpt-4o-realtime-preview)After, at 0b3dc8a, the Azure line (
azure/gpt-realtime-2.1)xAI page Python client, 6 runs
Before
After, at 0b3dc8a. Runs 1 and 2 went to gpt-realtime-2.1 and runs 3 to 6 to xAI
xAI page Node client, 6 runs
Before. xAI sessions print
conversation.created. Run 3 went to OpenAI, which rejected the beta session and sent no responseAfter, at 0b3dc8a. Runs 2, 5 and 6 went to xAI and runs 1, 3 and 4 to OpenAI's gpt-realtime-2.1
Eden AI page SDK audio block
The page's block with the Eden AI key filled in, at 3afb197
Before
After
Eden AI page proxy curls
The page's
config.yamlwith a scratch master key, then the page's speech and transcription curls, at 3afb197Before
After
OpenAI transcription table row
The row's call with an MP3 of "Hello, how are you?", at efc3967
Before, main's row
After
Beta-header client on Azure, no pin
After, at efc3967. A client sends
OpenAI-Beta: realtime=v1and beta-shaped events toazure/gpt-realtime-2.1with norealtime_protocol, which the page now says LiteLLM sends to GAGA-only check on 1.110.1
The released wheel's check that picks GA for a beta client, run on deployment names and
base_modelvaluesazure_realtime_protocol_for_clientcalls it withbase_model or model, so a custom name with nobase_modeland no pin sends a beta client to the beta endpoint, which closes as the "Realtime on Azure, default and pins" case shows. A live run on a custom name was tried, but Azure answeredOperationNotSupportedfor 15 minutes on a new custom-named gpt-realtime-1.5 deployment, so the deployment was removedTTS proxy curl
Before
After
TTS SDK, Azure TTS and `litellm_proxy` speech
Before, main at 8619aa5 (litellm_proxy.md speech call)
After (text_to_speech.md SDK (openai/tts-1-1106))
After (azure_speech.md proxy (azure/gpt-4o-mini-tts))
After (litellm_proxy.md speech (litellm_proxy/tts-1-1106))
Transcription proxy curl
Before
After (audio_transcription.md proxy curl, OpenAI + Azure config, try 1)
After (audio_transcription.md proxy curl, OpenAI + Azure config, try 2)
After (audio_transcription.md proxy curl, OpenAI + Azure config, try 3)
After (audio_transcription.md proxy curl, OpenAI + Azure config, try 4)
Transcription SDKs and fallback
Before, main at 8619aa5 (audio_transcription.md OpenAI SDK block)
After (audio_transcription.md SDK (gpt-transcribe))
After (audio_transcription.md OpenAI SDK through proxy)
After (audio_transcription.md fallback curl)
After (audio_transcription.md fallback OpenAI SDK)
After (litellm_proxy.md transcription (litellm_proxy/gpt-transcribe))
/live-pr-risk trace at 0b3dc8a: no heading changed, and no page outside release notes names a renamed alias. Only a blog post renders the WebRTC tester, and that component is unchanged from main
What the run showed beyond the fix