fix: remove OpenAI-Beta header, use gpt-realtime-2 GA model

The old OpenAI-Beta: realtime=v1 header is rejected by the GA API.
Removing it via extra_headers override. Using gpt-realtime-2 which
is the current production Realtime model.
This commit is contained in:
2026-06-04 13:42:06 -04:00
parent e2332af8d0
commit 1c15d42e06
+2 -1
View File
@@ -58,7 +58,8 @@ class RealtimeRelay:
logger.info("Connecting to OpenAI Realtime API...") logger.info("Connecting to OpenAI Realtime API...")
async with client.beta.realtime.connect( async with client.beta.realtime.connect(
model="gpt-4o-mini-realtime-preview-2025-07-18", model="gpt-realtime-2",
extra_headers={"OpenAI-Beta": ""},
) as conn: ) as conn:
self._conn = conn self._conn = conn
self._connected = True self._connected = True