mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-25 13:22:59 -05:00
[GH-ISSUE #8769] Display reasoning tokens in a foldable widget with a spinner/counter #134973
Reference in New Issue
Block a user
Originally created by @0x7CFE on GitHub (Jan 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8769
Feature Request
Is your feature request related to a problem? Please describe.
Since reasoning models are now mainstream, we are now often facing an issue of too many reasoning tokens thrown right in our face. This can flood the UI and make your laptop levitating because of coolers blasting at 100% due to UI update cycle. But the issue here is mostly about UI clutter than performance.
Describe the solution you'd like
I'd like to have a foldable reasoning tokens widget in OpenWebUI, much like in other UIs (see below)
Describe alternatives you've considered
Additional context
This is how it's implemented in https://chat.deepseek.com
Collapsed:

Expanded:

@silentoplayz commented on GitHub (Jan 22, 2025):
Addressed in the latest version released - https://github.com/open-webui/open-webui/releases/tag/v0.5.5
@0x7CFE commented on GitHub (Jan 22, 2025):
Wow, that was the fastest turnaround time for any issue I ever reported 😅 Yay to OpenWebUI! 🎉
@konczdev commented on GitHub (Jan 23, 2025):
@silentoplayz Doesn't work with deepseek api. The reasoning content is separated in the response. See reasoning_content api-docs.deepseek.com
@silentoplayz commented on GitHub (Jan 23, 2025):
See the latest Open WebUI changelog: https://github.com/open-webui/open-webui/releases/tag/v0.5.6
@konczdev commented on GitHub (Jan 23, 2025):
@silentoplayz You think I didn't test before commenting on a closed issue? I explained the root cause too. Yes, it works with distilled models since the tag is part of the content in the response. However, the official DeepSeek API is different. Example from their api docs:
@bgeneto commented on GitHub (Jan 23, 2025):
Confirmed. Works on distilled deepseek models but not with the official 'deepseek-reasoner' api model.
@TheLocalLab commented on GitHub (Jan 26, 2025):
I can also confirm that the deepseek reasoner api model isn't displaying the "thought" process but the local distilled models are.
@Yundin commented on GitHub (Jan 26, 2025):
Seems like there won't be an official support of this feature in the current state of DeepSeek API because its json differs from OpenAI API specs: https://github.com/open-webui/open-webui/issues/8749#issuecomment-2608126791
However it can be achieved by Pipe functions. This one imitates
<think></think>block from a local model and does the job for me: https://openwebui.com/f/zgccrui/deepseek_r1@garymoon commented on GitHub (Jan 27, 2025):
Would be good to communicate this caveat more prominently so we don't get confused thinking things are broken or we need to fix something 💙