mirror of
https://github.com/openai/codex.git
synced 2026-11-07 20:30:33 +00:00
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:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user