Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/agents/realtime/openai_realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ async def _send_interrupt(self, event: RealtimeModelSendInterrupt) -> None:
and session.audio is not None
and session.audio.input is not None
and session.audio.input.turn_detection is not None
and session.audio.input.turn_detection.interrupt_response is True,
and session.audio.input.turn_detection.interrupt_response is True
)
if not automatic_response_cancellation_enabled:
await self._cancel_response()
Expand Down Expand Up @@ -616,7 +616,7 @@ async def _handle_ws_event(self, event: dict[str, Any]):
and session.audio is not None
and session.audio.input is not None
and session.audio.input.turn_detection is not None
and session.audio.input.turn_detection.interrupt_response is True,
and session.audio.input.turn_detection.interrupt_response is True
)
if not automatic_response_cancellation_enabled:
await self._cancel_response()
Expand Down