Skip to content

Commit 4a00e74

Browse files
committed
wip
1 parent 6f52b91 commit 4a00e74

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/api.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ export class RealtimeAPI extends RealtimeEventHandler {
7373
);
7474
}
7575
const WebSocket = globalThis.WebSocket;
76-
const ws = new WebSocket(`${this.url}${model ? `?model=${model}` : ''}`, [
77-
'realtime',
78-
`openai-insecure-api-key.${this.apiKey}`,
79-
'openai-beta.realtime-v1',
80-
]);
76+
const ws = new WebSocket(`${this.url}${model ? `?model=${model}` : ''}`, []);
8177
ws.addEventListener('message', (event) => {
8278
const message = JSON.parse(event.data);
8379
this.receive(message.type, message);

0 commit comments

Comments
 (0)