Skip to content

Commit ac2be1a

Browse files
committed
fix: use preview model for realtime drift WS connections
CI API key has access to gpt-4o-mini-realtime-preview but not gpt-realtime-2 for WebSocket sessions. Canary still checks for GA models via /v1/models list endpoint.
1 parent 082307d commit ac2be1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/__tests__/drift/ws-providers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export async function openaiRealtimeWS(
355355
}
356356
const ws = await connectTLSWebSocket(
357357
"api.openai.com",
358-
"/v1/realtime?model=gpt-realtime-2",
358+
"/v1/realtime?model=gpt-4o-mini-realtime-preview",
359359
headers,
360360
);
361361

@@ -364,7 +364,7 @@ export async function openaiRealtimeWS(
364364

365365
// Step 2: Send session.update
366366
const session: Record<string, unknown> = {
367-
model: "gpt-realtime-2",
367+
model: "gpt-4o-mini-realtime-preview",
368368
modalities: ["text"],
369369
};
370370
if (tools) session.tools = tools;

0 commit comments

Comments
 (0)