Skip to content

Commit 6f52b91

Browse files
committed
fix: hard-coded url in in Node.js WebSocket connection
1 parent 339e955 commit 6f52b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class RealtimeAPI extends RealtimeEventHandler {
113113
const wsModule = await import(/* webpackIgnore: true */ moduleName);
114114
const WebSocket = wsModule.default;
115115
const ws = new WebSocket(
116-
'wss://api.openai.com/v1/realtime?model=gpt-4o-realtime-preview-2024-10-01',
116+
`${this.url}${model ? `?model=${model}` : ''}`,
117117
[],
118118
{
119119
finishRequest: (request) => {

0 commit comments

Comments
 (0)