[PR #23267] [CLOSED] Thinking Modes in Chat UI #42744

Closed
opened 2026-04-25 14:33:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/23267
Author: @jrdnmartin
Created: 3/31/2026
Status: Closed

Base: mainHead: thinking


📝 Commits (10+)

  • 8638226 updated UI
  • 526889a updated UI
  • 945b3b8 Merge branch 'main' into rebased-local-ui-2026-03-26
  • 9920384 Fix backend Ruff formatting and sync lockfile
  • 8a222e2 Sync frontend format and i18n outputs
  • 8619542 docs: add image smoke test CI design doc
  • 0172b1f docs: add image smoke test CI implementation plan
  • 375e83c ci: add image smoke test workflow
  • ccbc4ea fix: regenerate package-lock.json to include missing tiptap transitive deps
  • c11f7ba Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/23267 **Author:** [@jrdnmartin](https://github.com/jrdnmartin) **Created:** 3/31/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `thinking` --- ### 📝 Commits (10+) - [`8638226`](https://github.com/open-webui/open-webui/commit/86382265751135151afd8f5d08f838afa5492a47) updated UI - [`526889a`](https://github.com/open-webui/open-webui/commit/526889afb923cc9fdf3c78c5bcbc39d959662bac) updated UI - [`945b3b8`](https://github.com/open-webui/open-webui/commit/945b3b854f199afb4c003bfbf1797f0c4e055f53) Merge branch 'main' into rebased-local-ui-2026-03-26 - [`9920384`](https://github.com/open-webui/open-webui/commit/99203840b843fdab86d0b2b141a47411aa596dd9) Fix backend Ruff formatting and sync lockfile - [`8a222e2`](https://github.com/open-webui/open-webui/commit/8a222e2ed04debfcde582ee6a36adc2fb6650d26) Sync frontend format and i18n outputs - [`8619542`](https://github.com/open-webui/open-webui/commit/8619542d06d2f1f05c795bbdb6ced7831ab603f2) docs: add image smoke test CI design doc - [`0172b1f`](https://github.com/open-webui/open-webui/commit/0172b1f37a5e8749f8ed6c1a18a875ed695be5e0) docs: add image smoke test CI implementation plan - [`375e83c`](https://github.com/open-webui/open-webui/commit/375e83c7ef79aea29c4abc9d0da4a57716db8123) ci: add image smoke test workflow - [`ccbc4ea`](https://github.com/open-webui/open-webui/commit/ccbc4ea78fd55be27f83c5432f4a904d4c365581) fix: regenerate package-lock.json to include missing tiptap transitive deps - [`c11f7ba`](https://github.com/open-webui/open-webui/commit/c11f7baf5c000a220b1b1fcaed841f54d479ead2) Add picomatch to fix npm ci lock sync ### 📊 Changes **124 files changed** (+12474 additions, -8238 deletions) <details> <summary>View changed files</summary> ➕ `.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_ </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 14:33:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#42744