mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
Route WebRTC sideband joins to the Realtime API (#35830)
## What changed - Use `https://api.openai.com/v1` for WebRTC sideband websocket joins instead of deriving the URL from the model provider. - Keep `experimental_realtime_ws_base_url` as an explicit sideband override for local development and tests. - Exclude provider query parameters when building sideband URLs. ## Testing - Add coverage that a frameless sideband join uses `wss://api.openai.com/v1/live/rtc_test` even when the provider points at the ChatGPT backend. - Update the sideband retry end-to-end test to inject its mock server URL through the new override. GitOrigin-RevId: 5d3d2cd69905ba04143010ced36a22712825b563
This commit is contained in:
@@ -244,7 +244,8 @@ async fn realtime_ws_connect_webrtc_sideband_retries_join_until_server_is_availa
|
||||
provider.retry.max_attempts = 1;
|
||||
provider.retry.base_delay = Duration::from_millis(100);
|
||||
|
||||
let client = RealtimeWebsocketClient::new(provider);
|
||||
let client = RealtimeWebsocketClient::new(provider)
|
||||
.with_webrtc_sideband_base_url(format!("http://{addr}"));
|
||||
let connection = client
|
||||
.connect_webrtc_sideband(
|
||||
RealtimeSessionConfig {
|
||||
|
||||
Reference in New Issue
Block a user