Skip to content

server : do not parse when flushing http headers - #24281

Merged
aldehir merged 1 commit into
ggml-org:masterfrom
aldehir:fix-reasoning-none
Jun 8, 2026
Merged

server : do not parse when flushing http headers#24281
aldehir merged 1 commit into
ggml-org:masterfrom
aldehir:fix-reasoning-none

Conversation

@aldehir

@aldehir aldehir commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Overview

When flushing http headers, the parse function is called and silently strips content we want to retain that is part of the generation prompt. This PR suppressing that initial parse so that content is kept. The most common usage is when reasoning_format = none and we want to retain the initial <think> tag that is part of the generation prompt. However, this can surface as well when continuing a message and echo = true .

ref: #23320 (comment)

@xhinker

xhinker commented Jun 8, 2026

Copy link
Copy Markdown

Thank you @aldehir !

@aldehir
aldehir merged commit 42a0afd into ggml-org:master Jun 8, 2026
20 of 25 checks passed
adrianhoehne pushed a commit to adrianhoehne/llama.cpp that referenced this pull request Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants