Fix realtime parser item_id handling and test callsites

Preserve item_id on v1 audio deltas and annotate opaque None arguments in calls URL tests so argument-comment lint passes.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-04-05 13:01:43 -07:00
co-authored by Codex
parent fbd2b534b8
commit ab9c89e6e5
@@ -1056,7 +1056,7 @@ mod tests {
fn calls_url_from_api_url_appends_quicksilver_intent_for_v1() {
let calls_url = calls_url_from_api_url(
"wss://example.com/v1/realtime",
None,
/*query_params*/ None,
Some("quicksilver-test-model"),
RealtimeEventParser::V1,
)
@@ -1072,7 +1072,7 @@ mod tests {
fn calls_url_from_api_url_omits_intent_for_v2() {
let calls_url = calls_url_from_api_url(
"wss://example.com/v1/realtime",
None,
/*query_params*/ None,
Some("gpt-realtime"),
RealtimeEventParser::RealtimeV2,
)
@@ -1088,7 +1088,7 @@ mod tests {
fn calls_url_from_api_url_appends_calls_path_to_chatgpt_base_url() {
let calls_url = calls_url_from_api_url(
"https://chatgpt.com/backend-api/codex",
None,
/*query_params*/ None,
Some("gpt-realtime"),
RealtimeEventParser::RealtimeV2,
)