Skip to content

Commit

Permalink
fix: Partial recognition handling
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Dec 11, 2024
1 parent 416afd5 commit 11e707f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/call_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def _partial_stt_callback(text: str) -> None:
# Init buffer if empty
if not stt_buffer:
stt_buffer.append("")
# Append the recognition
stt_buffer[-1] += text
# Replace the partial recognition
stt_buffer[-1] = text
logger.debug("Partial recognition: %s", stt_buffer)

def _complete_stt_callback(text: str) -> None:
Expand Down

0 comments on commit 11e707f

Please sign in to comment.