Answers for LLM inference engineers

How to turn thinking off per request on Ollama, llama-server, vLLM and SGLang, and check that it worked

There is no field that works everywhere, and every one of these servers drops a field it does not know without an error. On Ollama's /v1/chat/completions only "reasoning_effort": "none" works (0.12.4 and later). think and chat_template_kwargs are silently dropped there. On llama-server, vLLM and SGLang, "chat_template_kwargs": {"enable_thinking": false} works for Qwen3-style templates. "reasoning_effort": "none" works only from llama.cpp b10121, vLLM v0.22.0 and SGLang v0.5.10. Older vLLM is the worst case: v0.18.0–v0.21.x accept "none" and keep thinking. Sampling fields fail the same quiet way: Ollama's OpenAI endpoint drops top_k, min_p and repeat_penalty. vLLM and SGLang spell the penalty repetition_penalty and ignore llama.cpp's repeat_penalty. thinkcheck.py sends paired requests to your own server and tells you which fields worked, which were ignored and which were rejected.

Published 2026-11-27 · Source read at Ollama v0.40.18 (tag 2026-11-23), llama.cpp b12809 (2026-11-27), vLLM v0.34.0 (PyPI 2026-11-16) and SGLang v0.5.23 (PyPI 2026-10-30); “since” versions found by reading every release tag. llama-server measured at b6393, b10108 and b12809 on CPU. Ollama, vLLM and SGLang are from the source, not run · Tool version 1.0 (Python 3.8+, standard library only)

Which field turns thinking off on each server?

All rows are per request on the OpenAI-compatible /v1/chat/completions endpoint, for a model whose template reads enable_thinking (Qwen3, Qwen3.5/3.6, GLM-4.5 and later, Nemotron 3). “Ignored” means HTTP 200 and the model still thinks.

Field sentOllama /v1 (v0.40.18)llama-server (b12809)vLLM (v0.34.0)SGLang (v0.5.23)
"chat_template_kwargs": {"enable_thinking": false}ignored (field not read)works since b5780 (measured)works since v0.5.1works since v0.4.7
"chat_template_kwargs": {"enable_thinking": "false"} (string)ignoredHTTP 400 since b6394; b6393 and older: accepted, still thinks (measured)accepted, still thinks (the template tests is false)same as vLLM
"reasoning_effort": "none"works since v0.12.4; v0.11.5–v0.12.3: HTTP 400 for non-GPT-OSS modelsworks since b10121 (measured); b10108 and older: ignored (measured)works since v0.22.0; v0.18.0–v0.21.x: accepted and ignored; v0.17.1 and older: HTTP 400works since v0.5.10; v0.5.1–v0.5.9: rejected (only low/medium/high)
"think": falseignored on /v1/chat/completions (works on native /api/chat since v0.9.0, and on /v1/responses)ignored (measured)ignoredignored
"enable_thinking": false (top level)ignoredignored (measured)ignoredignored
"chat_template_kwargs": {"thinking": false}ignoredonly for templates that read thinking (DeepSeek V3.1, Kimi K2); ignored for Qwen3 (measured)same; keys the template does not read are droppedsame

Model limits come first: Qwen3-2507 “Thinking” and Qwen3-VL “Thinking” templates always open a think block, so no field turns them off; use the matching Instruct model. GPT-OSS cannot stop reasoning either: Ollama maps "none" to "low" for it, per its OpenAI compatibility page. SGLang v0.5.23 also accepts a top-level "thinking": {"type": "disabled"}, which sets both thinking and enable_thinking in the template arguments unless the request sets them. The /no_think suffix is a prompt convention of the original Qwen3 hybrid models, not a server feature: the model may or may not follow it.

Why the string "false" fails

Qwen3's template tests enable_thinking is defined and enable_thinking is false. The string "false" is defined but is not false, so the template takes the thinking branch. We rendered the template through /apply-template on three llama-server builds with a toy model that carries the real Qwen3 template. b6393 returned the thinking prompt for the string. b10108 and b12809 return HTTP 400 invalid type for "enable_thinking" (expected boolean, got string). vLLM and SGLang pass the value to Jinja as it is, so a string there silently keeps thinking on. This bites clients that build JSON by hand or from environment variables.

Why vLLM v0.18–v0.21 keep thinking with reasoning_effort: "none"

vLLM v0.18.0 added "none" to the allowed values (PR #36238) but passed it to the chat template only as the variable reasoning_effort. Qwen3 templates never read that variable, so the model thought as usual and the request still returned 200. v0.22.0 (PR #43401) also sets enable_thinking to reasoning_effort != "none", unless the request already sets enable_thinking in chat_template_kwargs. If you cannot upgrade, send the chat_template_kwargs form; it works on every version since v0.5.1.

Which sampling fields are silently ignored?

Ollama's /v1/chat/completions ignores top_k, min_p and both repetition-penalty spellings. Each of the other three servers ignores the repetition-penalty spelling of the others. None of the four rejects a field it does not know.

FieldOllama /v1llama-servervLLMSGLang
top_kignoredworks (measured)worksworks
min_pignoredworks (measured)worksworks
repeat_penalty (llama.cpp / Ollama spelling)ignoredworksignoredignored
repetition_penalty (HF / vLLM spelling)ignoredignoredworksworks
frequency_penalty, presence_penaltyworksworksworksworks
seedworksworks (measured)worksworks
a misspelled or unknown fielddropped, no error, no logdropped, no error (measured)dropped; logged at WARNING v0.6.5–v0.17.1, only at DEBUG since v0.18.0dropped, no error

Ollama's OpenAI handler copies only temperature, top_p, seed, stop, max_tokens, frequency_penalty, presence_penalty and response_format into the model options. Go's JSON decoder drops everything else. To set top_k, min_p or repeat_penalty on Ollama, call the native /api/chat with "options", or put PARAMETER lines in the Modelfile. In vLLM, run with VLLM_LOGGING_LEVEL=DEBUG to see the line “The following fields were present in the request but ignored”.

Where does the thinking come back, and does hiding it save tokens?

A client that reads the wrong field sees no thinking and concludes it is off while the server is still generating it. Check usage.completion_tokens, not only the text.

Hiding is not stopping. vLLM's include_reasoning: false (v0.10.1+), SGLang's separate_reasoning: false and llama-server's reasoning_format: "none" only change the response. The tokens are still generated. To cap thinking without turning it off, use a budget. llama-server takes thinking_budget_tokens per request since b8287 and reasoning_budget_tokens since b9982, or --reasoning-budget at start-up. vLLM takes thinking_token_budget since v0.19.0; it needs a reasoning parser or --reasoning-config to know where thinking ends.

How do I check my own server?

curl -O https://erimaki-kobo.github.io/en/disable-thinking-request-field-check/thinkcheck.py
python thinkcheck.py --base-url http://localhost:11434/v1 --model qwen3:0.6b
python thinkcheck.py --base-url http://localhost:8000/v1 --model Qwen/Qwen3-0.6B --json result.json

It sends a baseline request, then the same request with each thinking switch, at temperature 0. A switch “worked” if the baseline thought and the switched request did not (it looks in reasoning_content, reasoning, reasoning_text and for a non-empty <think> block in content). For sampling it compares three samples at temperature 1.5 with and without top_k: 1 and min_p: 1.0. Identical samples mean the field worked; different samples mean it was dropped. It also repeats a seed, compares the three penalty spellings at temperature 0, and sends one unknown field to see whether the server is strict. About 24 short requests in total; it uses the first switch that worked in the sampling checks so thinking does not eat max_tokens. Use --extra '{"key": ...}' for fields your proxy needs and --api-key for a hosted endpoint.

Output against llama-server b12809 with the toy model (random weights, so it never thinks on its own and the thinking rows say “can't tell”; a toy over 151,936 tokens also never repeats, so the penalty rows show no effect):

Sampling fields (temperature 1.5, 3 samples each; also sent: nothing)
field                                   status  verdict
unknown field (erimaki_unknown_canary)  200     accepted and ignored (typos are silently dropped)
top_k: 1                                200     worked (3 samples identical)
min_p: 1.0                              200     worked (3 samples identical)
seed                                    200     worked (same seed repeats, other seed differs)

The thinking verdicts were tested against a replay server that follows the Ollama v0.40.18, vLLM v0.21 and vLLM v0.17.1 rules above (repro/mock_engine.py). It reported reasoning_effort: "none" as the only working switch for Ollama /v1, enable_thinking as the only one for vLLM v0.21, and a 400 for "none" on v0.17.1.

How this was measured

FAQ

How do I disable thinking on Ollama's OpenAI-compatible endpoint?
Send "reasoning_effort": "none" (or "reasoning": {"effort": "none"}) on Ollama 0.12.4 or later. With the OpenAI Python client that is reasoning_effort="none"; no extra_body is needed. On the native API, send "think": false.
I set --default-chat-template-kwargs '{"thinking": false}' on vLLM and Qwen3 still thinks.
Qwen3 reads enable_thinking; thinking is the key for DeepSeek V3.1 and Kimi K2 templates. vLLM keeps only the keys the template reads (since v0.11.0) and drops the rest without a warning. A request-level chat_template_kwargs overrides the server default.
Why does vLLM keep thinking when I send reasoning_effort: "none"?
On v0.18.0–v0.21.x it reaches the template only as a variable that Qwen3 does not read. Upgrade to v0.22.0 or send chat_template_kwargs: {"enable_thinking": false}.
Does llama-server accept enable_thinking as a string?
No. Since b6394 the string returns HTTP 400; in b6393 and older it was accepted and the model kept thinking. Send a JSON boolean.
Are top_k and min_p ignored by Ollama's OpenAI API?
Yes, without an error. Use the native /api/chat with "options", or the Modelfile.
Does reasoning_effort: "low" shorten Qwen3's thinking?
No. Qwen3 templates have no effort levels; on llama-server, vLLM v0.22.0+ and SGLang a value other than "none" turns thinking on and nothing else. On Ollama, a non-thinking model returns 400 “does not support thinking” for such a value on /v1/chat/completions. Use a thinking budget to shorten it.
Does include_reasoning: false make responses faster?
No. It removes the reasoning from the response; the model still generates it.
Why does SGLang return the thinking inside content?
The server was started without --reasoning-parser, or the request sent separate_reasoning: false.

Limitations

Sources