You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the RealtimeAPI class, the connect function accepts a model parameter on the browser side and includes it dynamically in the WebSocket URL. However, on the server side (Node.js), the model seems to be hardcoded as gpt-4o-realtime-preview-2024-10-01 and does not utilize the model argument passed to the function.
It's unclear if this behavior is intentional or an oversight. Could you clarify whether the server-side implementation is designed to always use a static model or if it should also respect the model parameter provided during connection?
Steps to Reproduce
Examine the connect function in the RealtimeAPI class.
On the browser side, the model parameter is appended dynamically to the WebSocket URL:
The server-side code does not use the model parameter passed to the connect function.
Expected Behavior
The server-side implementation should either:
Use the model parameter dynamically as the browser implementation does, or
Provide a comment or documentation clarifying that the model is intentionally static on the server side.
Actual Behavior
The server-side implementation always uses the hardcoded model gpt-4o-realtime-preview-2024-10-01, ignoring the model parameter.
Additional Context
Please confirm if this discrepancy is intentional. If it’s by design, could you clarify the reasoning? If not, should the server-side implementation be updated to dynamically use the model parameter as the browser implementation does?
The text was updated successfully, but these errors were encountered:
In the
RealtimeAPI
class, theconnect
function accepts amodel
parameter on the browser side and includes it dynamically in the WebSocket URL. However, on the server side (Node.js), themodel
seems to be hardcoded asgpt-4o-realtime-preview-2024-10-01
and does not utilize themodel
argument passed to the function.It's unclear if this behavior is intentional or an oversight. Could you clarify whether the server-side implementation is designed to always use a static model or if it should also respect the
model
parameter provided during connection?Steps to Reproduce
connect
function in theRealtimeAPI
class.model
parameter is appended dynamically to the WebSocket URL:model
parameter passed to theconnect
function.Expected Behavior
The server-side implementation should either:
model
parameter dynamically as the browser implementation does, orActual Behavior
The server-side implementation always uses the hardcoded model
gpt-4o-realtime-preview-2024-10-01
, ignoring themodel
parameter.Additional Context
Please confirm if this discrepancy is intentional. If it’s by design, could you clarify the reasoning? If not, should the server-side implementation be updated to dynamically use the
model
parameter as the browser implementation does?The text was updated successfully, but these errors were encountered: