mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
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:
committed by
GitHub
Unverified
parent
23f4cd8459
commit
84a24fe333
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user