mirror of
https://github.com/openai/codex.git
synced 2026-04-29 08:56:38 +00:00
fix: apply patch bin refresh (#17808)
Make sure the link to apply patch binary (i.e. codex) does not die in case of an update Fix this: https://openai.slack.com/archives/C08MGJXUCUQ/p1776183247771849 --------- Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -96,6 +96,11 @@ impl Match for RealtimeCallRequestCapture {
|
||||
}
|
||||
}
|
||||
|
||||
fn normalized_json_string(raw: &str) -> Result<String> {
|
||||
let value: Value = serde_json::from_str(raw).context("expected JSON fixture to parse")?;
|
||||
serde_json::to_string(&value).context("expected JSON fixture to serialize")
|
||||
}
|
||||
|
||||
fn websocket_request_text(
|
||||
request: &core_test_support::responses::WebSocketRequest,
|
||||
) -> Option<String> {
|
||||
@@ -518,6 +523,7 @@ async fn conversation_webrtc_start_posts_generated_session() -> Result<()> {
|
||||
);
|
||||
let body = String::from_utf8(request.body).context("multipart body should be utf-8")?;
|
||||
let session = r#"{"audio":{"input":{"format":{"type":"audio/pcm","rate":24000}},"output":{"voice":"cove"}},"type":"quicksilver","model":"realtime-test-model","instructions":"backend prompt\n\nstartup context"}"#;
|
||||
let session = normalized_json_string(session)?;
|
||||
assert_eq!(
|
||||
body,
|
||||
format!(
|
||||
|
||||
Reference in New Issue
Block a user