LocalAI/core
Richard Palethorpe 3db60b57e6
fix(realtime): consume ChatDeltas when C++ autoparser clears Response (#9538)
The llama.cpp C++-side chat autoparser clears Reply.Message and delivers
parsed content/reasoning/tool-calls via Reply.chat_deltas. chat.go handles
this (non-SSE path uses ToolCallsFromChatDeltas/ContentFromChatDeltas/
ReasoningFromChatDeltas), but realtime.go only read pred.Response, so any
model routed through the autoparser (Qwen2.5/3 and friends) produced a
silent reply: backend emitted N tokens, the session surface saw zero.

Mirror the non-SSE chat path in realtime's triggerResponse: when deltas
carry tool calls or content, use them directly; otherwise fall back to
the existing raw-text parsing.

Assisted-by: claude-opus-4-7-1M [Claude Code]

Signed-off-by: Richard Palethorpe <io@richiejp.com>
2026-04-24 14:41:38 +02:00
..
application feat: add biometrics UI (#9524) 2026-04-24 08:50:34 +02:00
backend feat: add biometrics UI (#9524) 2026-04-24 08:50:34 +02:00
cli feat: improve CLI error messages with actionable guidance (#8880) 2026-04-21 11:53:26 +02:00
clients feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
config feat: Add Sherpa ONNX backend for ASR and TTS (#8523) 2026-04-24 14:40:06 +02:00
dependencies_manager feat(ui): move to React for frontend (#8772) 2026-03-05 21:47:12 +01:00
explorer feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
gallery feat: add biometrics UI (#9524) 2026-04-24 08:50:34 +02:00
http fix(realtime): consume ChatDeltas when C++ autoparser clears Response (#9538) 2026-04-24 14:41:38 +02:00
p2p feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
schema feat(insightface): add antispoofing (liveness) detection (#9515) 2026-04-23 18:28:15 +02:00
services feat: add biometrics UI (#9524) 2026-04-24 08:50:34 +02:00
startup feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
templates fix(vision): propagate mtmd media marker from backend via ModelMetadata (#9412) 2026-04-18 20:30:13 +02:00
trace feat: voice recognition (#9500) 2026-04-23 12:07:14 +02:00