test(e2e): let the realtime send step accept input audio buffer frames (#45127)

This commit is contained in:
ryan-crabbe-berri 2026-10-07 11:51:20 -07:00 • committed by GitHub
parent 8283033c0e
commit 6352613d1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -308,7 +308,7 @@ class RealtimeSession:
connection: Connection
@step("Send the realtime event {event.type} over the websocket")
def send(self, event: SessionUpdate | ConversationItemCreate | ResponseCreate) -> None:
def send(self, event: SessionUpdate | ConversationItemCreate | ResponseCreate | InputAudioBufferAppend) -> None:
self.connection.send(event.model_dump_json(by_alias=True, exclude_none=True))
@step("Wait for a {stop_type} event on the realtime websocket")