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: Fix STT recognition log

Clémence Lesnéc3ab4b56b4b1
diff --git a/app/helpers/call_llm.py b/app/helpers/call_llm.py
index 677cdfc..07c004e 100644
--- a/app/helpers/call_llm.py
+++ b/app/helpers/call_llm.py
@@ -112,9 +112,9 @@ async def load_llm_chat( # noqa: PLR0913, PLR0915
stt_buffer.append("")
# Store the recognition
stt_buffer[-1] = text
+ logger.debug("Complete recognition: %s", stt_buffer)
# Add a new buffer for the next partial recognition
stt_buffer.append("")
- logger.debug("Complete recognition: %s", stt_buffer)
# Open the recognition gate
stt_complete_gate.set()