mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #14867] feat: Add support to toggle thinking (sending reasoning_effort) for supported models
#104380
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fkrauthan on GitHub (Jun 11, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14867
Check Existing Issues
Problem Description
I am leveraging LiteLLM to hookup things like Claude Sonnet and Opus to Open WebUI. Both models support an optional thinking mode. To enable that (per LiteLLM docs here) it can be enabled by sending
reasoning_effort.Desired Solution you'd like
Since I not always want that it would be great if I could enable an optional "Thinking" tool/mode on a model which will set the
reasoning_effortto a per model configured default value.Alternatives Considered
I guess a custom tool could be written but as it seem to be an OpenAI supported attribute it makes sense to support this out of the box.
Additional Context
No response
@suurt8ll commented on GitHub (Jun 11, 2025):
It would also be nice if Pipe functions could be aware of how this is toggled. I'm using Gemini models through my own pipe manifold and the latest one's support this same toggling behavior.
@jrkropp commented on GitHub (Jun 11, 2025):
You can already accomplish this via a Filter toggle. Adds a reasoning toggle like ChatGPT. https://github.com/jrkropp/open-webui-developer-toolkit/blob/development/functions/filters/reason_toggle_filter/reason_toggle_filter.py
@suurt8ll commented on GitHub (Jun 11, 2025):
Wow I did not know about
Filter.toggle. Thanks!@jrkropp commented on GitHub (Jun 11, 2025):
No problem. I've actually been silently following your gemini manifold github for some time now. Inspired me to make my own but for OpenAI Responses API. Learned a lot by reading your function/docs.
@fkrauthan commented on GitHub (Jun 11, 2025):
Ah cool that works. Still would be great if this toggle could be just implemented by default.