Repository navigation
server : preserve anthropic thinking blocks in conversion - #20120
Merged
ngxson merged 2 commits intoMar 6, 2026
Merged
Conversation
T0mSIlver
force-pushed
the
fix/20090-anthropic-thinking-conversion
branch
from
March 5, 2026 00:13
e01f9e3 to
09b3429
Compare
ngxson
requested changes
Mar 5, 2026
ngxson
left a comment
Collaborator
There was a problem hiding this comment.
please add a test case with /apply-template to prove that this works
T0mSIlver
force-pushed
the
fix/20090-anthropic-thinking-conversion
branch
from
March 5, 2026 13:46
2650560 to
330df34
Compare
Contributor
Author
|
Added two test cases:
Both use the Qwen3 template which natively handles reasoning_content. |
|
@T0mSIlver just wanted to open a PR for the same issue when I came across yours. I've been struggling with the same problems and qwen35 models. The core fix is basically identical to mine - i compiled it against ROCm and it solves the issue with claude code. On a side note, it also fixes the autoparser branch where you'd previously get |
ngxson
approved these changes
Mar 6, 2026
Seunghhon
pushed a commit
to Seunghhon/llama.cpp
that referenced
this pull request
Apr 26, 2026
…0120) * server : preserve anthropic thinking blocks in conversion (ggml-org#20090) * server : add tests for anthropic thinking block conversion --------- Co-authored-by: root <[email protected]>
my-other-github-account
pushed a commit
to my-other-github-account/llama.cpp
that referenced
this pull request
May 15, 2026
…0120) * server : preserve anthropic thinking blocks in conversion (ggml-org#20090) * server : add tests for anthropic thinking block conversion --------- Co-authored-by: root <[email protected]>
fukuro-kun
pushed a commit
to fukuro-kun/fukuro-llama-cpp-turboquant
that referenced
this pull request
Jul 5, 2026
…0120) * server : preserve anthropic thinking blocks in conversion (ggml-org#20090) * server : add tests for anthropic thinking block conversion --------- Co-authored-by: root <[email protected]>
MrLordCat
referenced
this pull request
in MrLordCat/llama.cpp-rdna-lab
Jul 16, 2026
* server : preserve anthropic thinking blocks in conversion (#20090) * server : add tests for anthropic thinking block conversion --------- Co-authored-by: root <[email protected]>
zommiommy
pushed a commit
to zommiommy/llama.cpp
that referenced
this pull request
Aug 18, 2026
…0120) * server : preserve anthropic thinking blocks in conversion (ggml-org#20090) * server : add tests for anthropic thinking block conversion --------- Co-authored-by: root <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Anthropic
/v1/messagesconversion to preserve assistantthinkingblocks asreasoning_contentwhen converting to internal OpenAI-compatible chat messages.Fixes #20090.
AI usage disclosure: