mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #15202] [CLOSED] Thinking mode feature #46801
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/15202
Author: @shua-ie
Created: 6/21/2025
Status: ❌ Closed
Base:
dev← Head:thinking-mode-feature📝 Commits (1)
6bb677cAdd thinking mode toggle for Ollama thinking models📊 Changes
15 files changed (+126 additions, -26 deletions)
View changed files
📝
src/lib/apis/index.ts(+3 -3)📝
src/lib/apis/ollama/index.ts(+1 -1)📝
src/lib/apis/users/index.ts(+1 -1)📝
src/lib/components/admin/Settings/Models.svelte(+2 -2)📝
src/lib/components/chat/Chat.svelte(+22 -0)📝
src/lib/components/chat/MessageInput.svelte(+75 -2)📝
src/lib/components/chat/MessageInput/CallOverlay.svelte(+1 -1)📝
src/lib/components/chat/Placeholder.svelte(+2 -0)📝
src/lib/components/chat/Settings/Audio.svelte(+1 -1)📝
src/lib/i18n/index.ts(+2 -2)📝
src/lib/i18n/locales/en-US/translation.json(+3 -0)📝
src/lib/utils/characters/index.ts(+5 -5)📝
src/lib/utils/marked/katex-extension.ts(+6 -6)📝
src/lib/workers/kokoro.worker.ts(+1 -1)📝
src/lib/workers/pyodide.worker.ts(+1 -1)📄 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.Overview
This PR adds a thinking mode toggle for compatible Ollama models that support the thinking feature. The toggle appears only for thinking-capable models (deepseek-r1, qwen3, magistral) and sends the appropriate API payload to enable thinking mode.
Technical Implementation
{"options": {"thinking": true}}payload only for compatible Ollama modelsChangelog Entry
Description
Added a thinking mode toggle feature for Ollama models that support thinking capabilities. The toggle appears only for compatible models (deepseek-r1, qwen3, magistral) and sends the appropriate thinking option in the API payload when enabled. Includes visual feedback and proper state management integration.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Thinking Available model:


Thinking unavailable model:
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.