devel #22
Loading…
Reference in a new issue
No description provided.
Delete branch "devel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A turn that completes with nothing to say used to end in dead air: no TTS, no audio and no error for the client, which then waited in its listening state until it timed out. Field case (server journal, turn_25): the backend answered with 512 tokens -- exactly max_output_tokens, i.e. truncated at the cap -- while emitting no content chunk at all and no tool call. TTS therefore never ran, the response carried zero audio bytes ("response complete (no audio gate)") and the device heard nothing. The device itself was fine: VAD confirmed 3.6 s of speech and the question transcribed cleanly. - LLM backends: when a stream ends with no assistant text and no tool call, report the raw shape -- chunk count, the non-empty delta fields seen, the stop reason. A provider field the mapper does not read (reasoning tokens, a tool call that never parsed) is then provable from the log instead of guessed at. Fields land in ``model_extra`` when the OpenAI SDK does not model them, so both places are read. - base: if a turn yields no chunk at all and did not fail, speak a brief fallback so the session continues instead of hanging. - tests: the fallback (streaming and non-streaming), its absence when text is spoken or only a tool is called, and the diagnostics naming a non-standard provider field. ``test_non_streaming_empty_choices_completes_cleanly`` now expects the fallback: its old expectation (silence) was the behaviour that produced the field symptom.