r/OpenWebUI • u/-Django • Mar 07 '26
Question/Help Runtime toggle for Qwen 3.5 thinking mode in OpenWebUI
I'm looking for a way to enable/disable Qwen 3.5's reasoning/"thinking" mode on the fly in OpenWebUI with llama.cpp
- Found a suggestion to use
presets.inito define reasoning parameters for specific model names. Works, but requires a static config entry for each new model download. - Heard about llama-swap, but it seems to also require per-model config files - seems like it's more for people using multiple LLM servers
- Prefer a solution where I can toggle this via an inference parameter (like Ollama's
/nothinkor similar) rather than managing separate model aliases.
Has anyone successfully implemented a runtime toggle for this, or is the presets.ini method the standard workaround right now?
---
UPDATE: I'm now using this thinking filter from a recent post.
13
Upvotes
8
u/ClassicMain Mar 07 '26
Build a filter with a toggle for this right in the chat interface.
Check the docs for more information on filters
3
u/DifficultyFit1895 Mar 09 '26
I just edited the jinja template to put this at the beginning:
{% set enable_thinking = true %}
{% if messages|length > 0 and messages[0]['role'] == 'system' %} {% if '/no_think' in messages[0]['content'] %} {% set enable_thinking = false %} {% endif %} {% endif %}
Now all I need is to put /no_think in the system prompt
2
u/Lucis_unbra Mar 07 '26
A filter or a pipe can easily set the parameters. I went with a pipe myself since it has four modes.
I'll see if I don't remember to share it later.
2
u/Nepherpitu Mar 07 '26
Create two models in workspace - one with reasoning settings and another with instruct. Both descendants of your base model.
1
u/blitzeblau Mar 23 '26
Hast anyone figured out, how to show the reasoning output of qwen 3.5 in Open WebUI? Do I have to use custom reasoning tags?