mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #13919] [MERGED] feat: add switching thinking/non-thinking modes to models #23330
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13919
Author: @dongfangzan
Created: 5/15/2025
Status: ✅ Merged
Merged: 5/16/2025
Merged by: @tjbck
Base:
dev← Head:main📝 Commits (3)
a7c9092test contribute9b93b81feat: add switching thinking/non-thinking modes to models351f018fix: typo📊 Changes
8 files changed (+74 additions, -4 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+5 -0)📝
src/lib/components/chat/Chat.svelte(+13 -1)📝
src/lib/components/chat/MessageInput.svelte(+28 -1)📝
src/lib/components/chat/Placeholder.svelte(+2 -0)➕
src/lib/components/icons/Thinking.svelte(+19 -0)📝
src/lib/components/workspace/Models/Capabilities.svelte(+3 -1)📝
src/lib/components/workspace/Models/ModelEditor.svelte(+2 -1)📝
src/lib/i18n/locales/zh-CN/translation.json(+2 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
related issue: Add the enable_thinking parameter to Qwen3
Added
Add a swtich checkbox on model edit page to enable switching think/non-think mode

Then add a think button on message input

For other models that do not support switching between thinking/non-thinking modes, there does not exist the Thinking button.
If anyone were interested in this solution, I could submit the code.
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.