mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-22 17:42:18 -05:00
[PR #23267] [CLOSED] Thinking Modes in Chat UI #130780
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/23267
Author: @jrdnmartin
Created: 3/31/2026
Status: ❌ Closed
Base:
main← Head:thinking📝 Commits (10+)
8638226updated UI526889aupdated UI945b3b8Merge branch 'main' into rebased-local-ui-2026-03-269920384Fix backend Ruff formatting and sync lockfile8a222e2Sync frontend format and i18n outputs8619542docs: add image smoke test CI design doc0172b1fdocs: add image smoke test CI implementation plan375e83cci: add image smoke test workflowccbc4eafix: regenerate package-lock.json to include missing tiptap transitive depsc11f7baAdd picomatch to fix npm ci lock sync📊 Changes
124 files changed (+12474 additions, -8238 deletions)
View changed files
➕
.github/workflows/image-smoke-test.disabled(+59 -0)📝
.gitignore(+2 -0)📝
CHANGELOG.md(+1 -0)📝
Dockerfile(+1 -1)➕
backend/dev.ps1(+41 -0)📝
backend/open_webui/config.py(+115 -164)📝
backend/open_webui/env.py(+3 -5)📝
backend/open_webui/routers/openai.py(+66 -1)📝
backend/open_webui/static/assets/pdf-style.css(+1 -2)📝
backend/open_webui/static/custom.css(+110 -0)📝
backend/open_webui/static/swagger-ui/swagger-ui-bundle.js(+2939 -3003)➕
backend/open_webui/static/venomx-logo.png(+0 -0)📝
backend/open_webui/utils/payload.py(+60 -0)📝
backend/start_windows.bat(+9 -3)➕
dev-local.ps1(+19 -0)📝
docker-compose.yaml(+2 -0)📝
docs/SECURITY.md(+1 -2)➕
docs/plans/2026-03-26-image-smoke-test-ci-design.md(+59 -0)➕
docs/plans/2026-03-26-image-smoke-test-ci.md(+124 -0)📝
package-lock.json(+2986 -4343)...and 80 more files
📄 Description
This PR adds a native-aligned Thinking Level control to chat so users can choose low, medium, or high effort directly from the UI (defaulting to medium), instead of relying on manual prompt commands. The selected level is carried through the existing params flow and consistently enforced server-side, including normalization and routing behavior that follows OpenWebUI’s reasoning patterns.
It also updates effort-to-budget behavior to the new targets (low 1024, medium 2048, high 4096), improves non-reasoning model handling by applying deterministic limits plus an explicit reasoning-level hint in context, and refines Ollama-compatible payload mapping to use level-based signaling. The associated test harness was updated to validate the new thresholds across randomized multi-run checks.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.