Chat template, reasoning and tools

Chat templates, reasoning effort and thinking, tool-call parsing and tool safety.

17 options, alphabetical, diagnostics last. All themes and the A–Z index.

--auto-disable-thinking-with-tools mode flag

Valueswitch
Default—
--help-advanced sectionMode / Bench / Probe Flags

The release's help lists this flag without a description.

--chat mode flag

Valueswitch
Default—
--help-advanced sectionMode / Bench / Probe Flags

The release's help lists this flag without a description.

--chat-template day-to-day mode flag

Value<PATH>
Default—
--help-advanced sectionMode / Bench / Probe Flags

use this chat template file instead of the pack's own (issue #34; wins over chat_template.jinja and tokenizer_config.json; an unreadable or non-compiling file fails the boot rather than silently falling back)

--keep-tools-when-tool-choice-none

Valueswitch
Defaultoff
--help-advanced sectionServing

vLLM-compatible tool_choice:"none": keep the tool definitions in the prompt (the same tools block a normal request renders, so the prefix cache / WP16 checkpoints survive a compaction/summary turn), append a do-not-call instruction to the last message, and return the reply as plain content (never parsed into tool_calls; a stray <tool_call> stays text). Default off = legacy behaviour (tools removed from the prompt for "none"), byte-identical. Changes the prompt of tool_choice:"none" requests only

--no-chat mode flag

Valueswitch
Default—
--help-advanced sectionMode / Bench / Probe Flags

The release's help lists this flag without a description.

--reasoning-config

Value<TEXT>
Defaultempty
--help-advanced sectionServing

vLLM-compatible reasoning settings for the per-request thinking_token_budget, as vLLM's JSON object: {"reasoning_end_str": "..."} = the text the server emits when a request's budget is reached (it must contain </think>; a transition phrase before it, e.g. "\n\nConsidering the limited time, I have to give the solution based on the thinking directly now.\n</think>\n\n", helps the model answer from what it has), {"reasoning_start_str": "..."} = the start marker. Default: </think> alone, as in vLLM. Other keys (reasoning_parser) are accepted and ignored. EXL3 server

--reasoning-effort day-to-day mode flag

Value<e>
Default—
--help-advanced sectionMode / Bench / Probe Flags

reasoning level in the chat template (no_think|low|high|medium|xhigh)

--scrub-tool-secrets day-to-day

Value<off|provenance|pattern|all>
Defaultoff
--help-advanced sectionServing

server (TOOLSCRUB1, opt-in hardening): redact tool-result-derived secrets from SERVED text only - streamed SSE deltas and non-streaming bodies: reasoning_content, content and tool-call arguments; the model's own context is never modified and the tool-call parser still sees raw text. off (default) = no served byte changes, zero cost. provenance = redact echoes of credential-shaped strings that appeared in THIS conversation's tool results (exact + width-10 shingle matches; [redacted:tool-secret]). pattern = redact key-shaped text anywhere (sk-, AKIA, gh[pousr]_, JWT shape, hex runs of 16+ digits incl. UUID/IPv6 shapes, high-entropy runs; [redacted:key-shape]). all = both layers. Redactions are counted on /metrics as velogb10_scrub_hits_total. Deployers serving agentic traffic where tool results carry credentials may want this on; the engine imposes no system prompt (D3 rejected 2026-10-13)

--thinking day-to-day mode flag

Value<mode>
Default—
--help-advanced sectionMode / Bench / Probe Flags

server: engine's thinking override — auto (default: pass nothing, the model's own chat_template.jinja decides) | on | off. Per-request override: chat_template_kwargs.enable_thinking

--thinking-on mode flag

Valueswitch
Default—
--help-advanced sectionMode / Bench / Probe Flags

The release's help lists this flag without a description.

--tool-block-end

Value<after-function|first>
Defaultafter-function
--help-advanced sectionServing

XML tool calls: where a <tool_call> block ends. after-function (default; the popular engines' rule: in vLLM's Qwen3 parser the only thing that ends a call inside its arguments is </function>, and </tool_call> is looked for only after it) = a </tool_call> ends the block only where the call has ended: the text before it must end with </function> or </parameter> (a block that starts with {: with }), and it must not close a quoted <tool_call> that the block itself opened (a quoted complete block inside an argument is text; when that leaves no close, the quoted openers are ignored and only the first condition applies). A </tool_call> that follows prose inside an argument is text, so a file that explains the format is written whole. When no close qualifies, the first one ends the block as before; a block that never closes is dropped under both settings (counted: velogb10_toolcall_unclosed_total). first = the next </tool_call> in the text (v0.7.3): an argument that contains the text </tool_call> loses everything after it and the rest of the call comes back as prose (a JSON-bodied block already ends at the first close that follows }, under both settings). WHAT after-function STILL GETS WRONG (each pinned by a test): a value that says to end every block with </tool_call> and then quotes two calls returns the cut call AND a phantom call made of the quoted text unless --tool-quote-pairing on or cost reads the value (first cut the block at the mention and lost the content instead); a value that ends with a quoted </function> and a quoted </tool_call> and then nothing more is indistinguishable from a real call

--tool-call-format mode flag

Value<value>
Default—
--help-advanced sectionMode / Bench / Probe Flags

The release's help lists this flag without a description.

--tool-quote-pairing

Value<off|on|cost>
Defaultoff
--help-advanced sectionServing

XML tool calls: how the end of an argument value is found when the value itself contains tool-call tags (an agent writing a file ABOUT tool calls). off = the rule of v0.7.3, byte-identical: a </parameter> ends the value when a <parameter=, a call tag, </function> or the end of the block follows it. Under off an argument that quotes a complete call with two or more parameters is cut at the first quoted </parameter>, and an argument that quotes two calls can come back as two calls, the second one made of the quoted text. on = first pair the tags of quoted calls: inside a value, after a <function= tag, every <parameter= with a non-blank value is owed one </parameter>, which is then content. The paired close is used only when nothing opens again between the last such close and it, and, when the request's tools are known, unless the catalogue contradicts it (what follows it is a parameter this tool does not declare or was already given, or a call to a tool that is not offered, while what follows the v0.7.3 close fits); otherwise the v0.7.3 rule decides. on returns such arguments whole and does not return the quoted calls. on is WRONG where off is right for a value that opens more quoted parameters than it closes (a sentence that mentions the tags is enough), in a block where a later value holds a lone </parameter> (a close tag that no quoted open tag accounts for): the value runs on to that close, and the arguments or the call in between are lost. cost = read the whole block: every </parameter> that could end a value is scored together with everything that follows from it (a value that ends in a close tag after prose, a close tag with no open before it inside a value, an empty value, a parameter given twice or not declared, a call to a tool that is not offered, an extra call, a required parameter missing; passing over a close that the v0.7.3 rule would accept costs too) and the cheapest reading of the block wins, ties going to fewer calls and then to the v0.7.3 close (a block above the model's work budget is read by the v0.7.3 rule and counted in velogb10_toolcall_cost_declined_total). cost reads what on reads wrongly in a quoted document and what on never sees (a quoted call that is not balanced), and it loses in its own cases: it cannot tell apart an argument that holds a lone open tag followed by a real second call (the open tag and the first call's real close look like a balanced quotation, so the second call can be read as part of the first argument), nor a value that quotes the close of a parameter next to a quoted parameter that is not complete (old_string = a quoted '</parameter>' line, new_string = another) from two quoted values read as one, nor a value that ends with a forged close and call from two real calls. Under every setting a value that ends in a forged closing sequence is indistinguishable from two real calls, and a quoted call whose last argument is blank lets a quoted call after it through as a call: the format has no escaping. A well-formed block whose values hold no tool-call tags parses the same under every setting (a malformed block, with text between a close tag and the next tag, can differ)

--tool-shadow-cost

Value<off|on>
Defaultoff
--help-advanced sectionServing

XML tool calls, diagnostics only: also read every response that holds a <tool_call> block under the cost model (--tool-quote-pairing cost) when that is not the served rule, and COUNT where it reads the text differently (velogb10_toolcall_parse_disagreement_total{other="cost"}; nothing of it is served). off (default) = the shadow comparison reads the cheap rules only (quote pairing on, and the other block rule): each is one more parse of the response, as dear as the served parse itself (ordinary responses: tens of microseconds; the worst shape measured, 64 blocks of 8 KB with 100 tools offered: 6 ms). on = the cost model is read too. It costs the thread that parses the response (on the EXL3 server the one thread that serves every stream, /health and /metrics) up to its work budget per response (200,000 work units, measured 3.4 ms of one GB10 core in the worst case, a response of 64 blocks that each quote 60 calls under 100 offered tools); a typical response costs under 0.1 ms. A block over the budget is skipped and counted (velogb10_toolcall_cost_declined_total{role="shadow"}). Changes no served byte

--tool-unclosed

Value<complete|drop>
Defaultdrop
--help-advanced sectionServing

XML tool calls: a response whose <tool_call> block never got its </tool_call>. drop (default) = v0.7.3 byte for byte: the whole block is dropped (counted: velogb10_toolcall_unclosed_total{outcome=returned|dropped_cut|dropped_length}). complete = when the model ended by itself (finish stop) every <function=...>...</function> element that IS closed comes back as a call (vLLM's qwen3 parser does this: its state machine ends a call at </function>, the wrapper is only preamble); an element cut inside an argument is still dropped, and a response cut by the token limit, cancelled by the client or ended in an engine error is dropped whole, as before; a JSON body inside the unclosed wrapper is dropped too (vLLM's XML parser makes no call of it). Why drop is the default: on 36 recorded outputs with an unclosed wrapper none was a clean case of a closed function element whose wrapper close is missing, and the one output that complete changed was a junk call parsed from prose about the call format. WHAT complete STILL GETS WRONG: a model that wrote one element and forgot the wrapper close is served, but a model that was about to write a second element is served just the same (only the counter can tell the two apart); an element cut inside an argument is NOT returned, where vLLM's stream hands out its partial arguments as they arrive.

--tool-value-trim

Value<one|all>
Defaultone
--help-advanced sectionServing

XML tool calls: which newlines around an argument value are the format's own. one (default) = exactly ONE leading and ONE trailing newline are removed (the template writes <parameter=k>, a newline, the value, a newline, </parameter>), nothing else: vLLM's rule, byte for byte (only \n, one at each end; a \r\n loses its \n only). A file the model ends with a blank line arrives with its final newline, a file that begins with a blank line keeps it, and a short value (a path, a command) that the model followed with a blank line before the close ends in a newline: that is what the model wrote. all = every leading and every trailing newline is removed (v0.7.3 and earlier: every file written through a tool call arrived without a final newline, whatever the model wrote). The value rule and the block rule are not changed by this option

--tool-trace diagnostic

Value<PATH>
Defaultoff
--help-advanced sectionDiagnostics / Test Drills

server (TOOLEVAL): append one JSON line per tool-involved chat turn (the request offers tools, or its history carries a tool result) to this file: the tail of the rendered prompt, the model's raw output (thinking included), the text the tool parser was given, and the parsed verdict (content, tool_calls, finish) with the request class (stream, seed, sampling, thinking, tool count). Off by default; zero cost when off. The lines are prompt and model output: treat the file as user data

Generated from the --help and --help-advanced output of the v0.8.1 release binary (velogb10-v0.8.1-gb10-sm121.tar.gz, sha256 109a53c41e0d79e0…, from the GitHub release). Every option it lists is here.