make webrtc the default experience (#17188)

## Summary
- make realtime default to the v2 WebRTC path
- keep partial realtime config tables inheriting
`RealtimeConfig::default()`

## Validation
- CI found a stale config-test expectation; fixed in 974ba51bb3
- just fmt
- git diff --check

---------

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-04-08 23:52:32 -07:00
committed by GitHub
parent 23f4cd8459
commit 84a24fe333
2 changed files with 2 additions and 4 deletions

View File

@@ -448,9 +448,9 @@ pub enum RealtimeWsMode {
#[derive(Serialize, Deserialize, Debug, Clone, Copy, Default, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum RealtimeTransport {
#[default]
#[serde(rename = "webrtc")]
WebRtc,
#[default]
Websocket,
}

View File

@@ -6498,10 +6498,8 @@ voice = "marin"
assert_eq!(
config.realtime,
RealtimeConfig {
version: RealtimeWsVersion::V2,
session_type: RealtimeWsMode::Conversational,
transport: RealtimeTransport::Websocket,
voice: Some(RealtimeVoice::Marin),
..RealtimeConfig::default()
}
);
Ok(())