Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
GPT-Realtime-2:支援推理與工具呼叫的即時語音模型。
ws
import WebSocket from "ws"; const ws = new WebSocket( "wss://api.mixroute.ai/v1/realtime?model=gpt-realtime-2", { headers: { Authorization: "Bearer YOUR_API_KEY" } }, ); ws.on("open", () => { ws.send(JSON.stringify({ type: "response.create", response: { modalities: ["text"] }, })); }); ws.on("message", (data) => console.log(data.toString()));
model
gpt-realtime-2
Authorization
session.update
response.create