Archived
/v1/completions accepts llama-server's preserved_tokens: control tokens the completion's text keeps rather than drops. A client that renders its own template and parses its own reply (a tool-call sidecar) has no other way to see a reply format built of control tokens. Bounded like the stop strings. A thinking budget needs the reasoning block found by token. Gemma 4's opener <|channel>thought is one control token followed by text; it is now found by that first token (what a reply opening its own block writes first, and no text can spell), with the text after it counted as reasoning. An opener with a second control token in it is still refused, since its first token may open something other than the reasoning. The refusal message says why. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>