mirror of
https://github.com/justLV/onju-v2
synced 2026-04-21 07:37:34 +00:00
Move the conversational backend's _finalize() call out of stream()'s finally block and expose it as a public commit(text) method instead. The previous behavior persisted whatever was yielded even when the stream errored, the user interrupted, or a TTS send failed — so saved history diverged from what the user actually heard, and the next turn replayed phantom context to the LLM. main.py now calls backend.commit(response_text) only after a turn successfully completes and produced content. Agentic backend gets a no-op commit() since history lives on the remote service. |
||
|---|---|---|
| .. | ||
| conversation | ||
| services | ||
| __init__.py | ||
| audio.py | ||
| config.yaml.example | ||
| device.py | ||
| main.py | ||
| protocol.py | ||
| vad.py | ||