[BugFix] Fix leftovers of the legacy OpenAI realtime API event names (#7426)
Signed-off-by: Nick Cao <ncao@redhat.com> Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
1 parent
78e1a0ae5c
commit
d3493384cf
10 files changed
+103
-48
No files matched your search
@@ -2197,9 +2197,7 @@ def test_native_realtime_protocol_audio_delta_preserves_sample_rate_hz():
|
||||
)
|
||||
|
||||
audio_events = [
|
||||
payload
|
||||
for payload in payloads
|
||||
if payload["type"] in {"response.output_audio.delta", "response.output_audio.delta"}
|
||||
payload for payload in payloads if payload["type"] in {"response.output_audio.delta", "response.audio.delta"}
|
||||
]
|
||||
assert {payload["type"] for payload in audio_events} == {"response.output_audio.delta"}
|
||||
assert {payload["format"] for payload in audio_events} == {"pcm16"}
|
||||
|
||||
Reference in new issue
Block a user