Skip to content

fix(stt): migrate OpenAI Realtime client to GA API shape - #221

Open
smcronin wants to merge 1 commit into
pickle-com:mainfrom
smcronin:fix/openai-stt-realtime-ga
Open

fix(stt): migrate OpenAI Realtime client to GA API shape#221
smcronin wants to merge 1 commit into
pickle-com:mainfrom
smcronin:fix/openai-stt-realtime-ga

Conversation

@smcronin

Copy link
Copy Markdown

Summary of Changes

OpenAI removed the Realtime Beta on May 12, 2026. STT is broken for every OpenAI user. Three changes in src/features/common/ai/providers/openai.js:

  1. Drop OpenAI-Beta: realtime=v1 header.
  2. transcription_session.updatesession.update with session.type: "transcription".
  3. Audio config nests under session.audio.input.*; format is now { type: "audio/pcm", rate: 24000 } instead of "pcm16".

Inbound conversation.item.input_audio_transcription.* events unchanged — sttService.js untouched.

Related Issue

Contributor's Self-Review Checklist

  • I have read CONTRIBUTING.md.
  • Code follows project style.
  • Tests — no existing coverage for the STT provider; verified against a live OpenAI session.
  • Docs — no user-facing docs reference the wire format.
  • Tested locally.

OpenAI removed the Realtime Beta on 2026-05-12. STT sessions now close
immediately with code beta_api_shape_disabled.

- drop OpenAI-Beta: realtime=v1 header
- transcription_session.update -> session.update with session.type=transcription
- nest audio config under session.audio.input.*; format is now an object
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.

[BUG] OpenAI STT broken — Realtime Beta API was sunset

1 participant