Skip to content

Commit d1abf43

Browse files
authored
fix: Remove trailing commas causing tuple assignment in response cancellation (openai#1952)
1 parent 2630489 commit d1abf43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agents/realtime/openai_realtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ async def _send_interrupt(self, event: RealtimeModelSendInterrupt) -> None:
431431
and session.audio is not None
432432
and session.audio.input is not None
433433
and session.audio.input.turn_detection is not None
434-
and session.audio.input.turn_detection.interrupt_response is True,
434+
and session.audio.input.turn_detection.interrupt_response is True
435435
)
436436
if not automatic_response_cancellation_enabled:
437437
await self._cancel_response()
@@ -616,7 +616,7 @@ async def _handle_ws_event(self, event: dict[str, Any]):
616616
and session.audio is not None
617617
and session.audio.input is not None
618618
and session.audio.input.turn_detection is not None
619-
and session.audio.input.turn_detection.interrupt_response is True,
619+
and session.audio.input.turn_detection.interrupt_response is True
620620
)
621621
if not automatic_response_cancellation_enabled:
622622
await self._cancel_response()

0 commit comments

Comments
 (0)