server : preserve anthropic thinking blocks in conversion#20120
Merged
ngxson merged 2 commits intoggml-org:masterfrom Mar 6, 2026
Merged
server : preserve anthropic thinking blocks in conversion#20120ngxson merged 2 commits intoggml-org:masterfrom
ngxson merged 2 commits intoggml-org:masterfrom
Conversation
e01f9e3 to
09b3429
Compare
ngxson
requested changes
Mar 5, 2026
Collaborator
ngxson
left a comment
There was a problem hiding this comment.
please add a test case with /apply-template to prove that this works
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
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: