Skip to content

Commit

Permalink
End of utterance Assertion Error Rescue (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachkamran authored Feb 9, 2025
1 parent 7682654 commit f72e0c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livekit-agents/livekit/agents/pipeline/pipeline_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ async def _run_task(chat_ctx: ChatContext, delay: float) -> None:
if eot_prob < unlikely_threshold:
delay = self._max_endpointing_delay
delay = max(0, delay - elasped)
except TimeoutError:
except (TimeoutError, AssertionError):
pass # inference process is unresponsive

await asyncio.sleep(delay)
Expand Down

0 comments on commit f72e0c2

Please sign in to comment.