Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

dev: Add log for recognition timeout

Clémence Lesné843fe28efbf9
diff --git a/app/helpers/call_llm.py b/app/helpers/call_llm.py
index 147ae43..00ae850 100644
--- a/app/helpers/call_llm.py
+++ b/app/helpers/call_llm.py
@@ -212,7 +212,7 @@ async def load_llm_chat( # noqa: PLR0913, PLR0915
try:
await asyncio.wait_for(stt_complete_gate.wait(), timeout=0.05)
except TimeoutError:
- pass
+ logger.debug("Complete recognition timeout, using partial recognition")
stt_text = " ".join(stt_buffer).strip()