Fix realtime CI expectations

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-04-07 11:41:38 -07:00
parent d591746398
commit 86de181b33
3 changed files with 6 additions and 19 deletions

View File

@@ -1714,7 +1714,8 @@ mod tests {
"params": {
"threadId": "thr_123",
"prompt": "You are on a call",
"sessionId": "sess_456"
"sessionId": "sess_456",
"transport": null
}
}),
serde_json::to_value(&request)?,

View File

@@ -390,23 +390,7 @@ async fn conversation_webrtc_start_posts_generated_session() -> Result<()> {
Some("multipart/form-data; boundary=codex-realtime-call-boundary")
);
let body = String::from_utf8(request.body).context("multipart body should be utf-8")?;
let session = json!({
"type": "quicksilver",
"instructions": "backend prompt\n\nstartup context",
"audio": {
"input": {
"format": {
"type": "audio/pcm",
"rate": 24_000,
},
},
"output": {
"voice": "fathom",
},
},
"model": "realtime-test-model",
})
.to_string();
let session = r#"{"audio":{"input":{"format":{"type":"audio/pcm","rate":24000}},"output":{"voice":"fathom"}},"type":"quicksilver","model":"realtime-test-model","instructions":"backend prompt\n\nstartup context"}"#;
assert_eq!(
body,
format!(

View File

@@ -14,4 +14,6 @@ Scenario: /responses POST bodies (input only, redacted like other suite snapshot
01:message/user:<ENVIRONMENT_CONTEXT:cwd=<CWD>>
02:message/user:first prompt
03:message/assistant:first answer
04:message/assistant:{"author":"/root/worker","recipient":"/root","other_recipients":[],"content":"queued child update","trigger_turn":false}
04:function_call/shell
05:message/assistant:stale final
06:function_call_output:failed to parse function arguments: invalid type: string "echo stale tool call", expected a sequence at line 1 column 33