mirror of
https://github.com/openai/codex.git
synced 2026-05-02 10:26:45 +00:00
realtime: disable output interruption from turn detection
This commit is contained in:
@@ -95,6 +95,18 @@ async fn realtime_ws_e2e_session_create_and_event_flow() {
|
||||
first_json["session"]["audio"]["input"]["format"]["rate"],
|
||||
Value::from(24_000)
|
||||
);
|
||||
assert_eq!(
|
||||
first_json["session"]["audio"]["input"]["turn_detection"]["type"],
|
||||
Value::String("semantic_vad".to_string())
|
||||
);
|
||||
assert_eq!(
|
||||
first_json["session"]["audio"]["input"]["turn_detection"]["interrupt_response"],
|
||||
Value::Bool(false)
|
||||
);
|
||||
assert_eq!(
|
||||
first_json["session"]["audio"]["input"]["turn_detection"]["create_response"],
|
||||
Value::Bool(true)
|
||||
);
|
||||
assert_eq!(
|
||||
first_json["session"]["tool_choice"],
|
||||
Value::String("auto".to_string())
|
||||
|
||||
Reference in New Issue
Block a user