summaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-31 11:40:34 +0200
committerDanilo M. <danix@danix.xyz>2026-07-31 11:40:34 +0200
commit99b849463b6748dbb14f4d4cdfa18185e2a860a9 (patch)
tree1d02ded50190c67acfa86eb96e320d8f54fb1d00 /CHANGELOG.md
parent879c1bf3af959234ef608ca90e96ded4c8a81498 (diff)
downloadllamachat-99b849463b6748dbb14f4d4cdfa18185e2a860a9.tar.gz
llamachat-99b849463b6748dbb14f4d4cdfa18185e2a860a9.zip
fix: keep reasoning out of the reply body
A delta carrying both reasoning_content and an empty content was classified by truthiness, so the reasoning fell through to the content branch. The tail of the model's thinking was stored and displayed as the answer, splitting mid-sentence across the two fields. Classify on the presence of the field instead, and return nothing for an empty reasoning delta rather than falling through. The visible symptom was a code block swallowing the message: leaked thinking is dense with backticks, and an odd count leaves a run open to the end of the reply. Close an unterminated fence before parsing, with a closer matching the opener's length, and drop a lone dangling inline backtick. Streaming needs this regardless, since a fence is unclosed on nearly every frame. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions