mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #17457] [CLOSED] feat: Study mode #40067
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/17457
Author: @Simon-Stone
Created: 9/15/2025
Status: ❌ Closed
Base:
dev← Head:study-mode📝 Commits (9)
171021cMerge pull request #17327 from open-webui/devf8e15b0add config params for study mode14cf3fdadd study mode backend configaead299add study mode button to frontend280030cadd study mode configf4c4b26add update and getter function for study prompt configfc949a4add study mode buttonc88224fadd study mode config options to Settingse2c888ekeep user-defined study mode prompt and default study mode prompt separate to allow behavior that is consistent with how task prompts are handled.📊 Changes
11 files changed (+457 additions, -30 deletions)
View changed files
📝
backend/open_webui/config.py(+89 -28)📝
backend/open_webui/main.py(+16 -0)➕
backend/open_webui/routers/study_mode.py(+48 -0)📝
src/lib/apis/index.ts(+62 -0)📝
src/lib/components/admin/Settings.svelte(+37 -0)➕
src/lib/components/admin/Settings/StudyMode.svelte(+96 -0)📝
src/lib/components/chat/Chat.svelte(+49 -1)📝
src/lib/components/chat/MessageInput.svelte(+37 -1)📝
src/lib/components/chat/Placeholder.svelte(+2 -0)➕
src/lib/components/icons/GraduationCap.svelte(+20 -0)📝
src/lib/stores/index.ts(+1 -0)📄 Description
Study Mode
Changelog Entry
Description
This PR introduces Study Mode, which is inspired by OpenAI's Study Mode and Anthropic's Learning Mode.
Discussion in #17424
When Study Mode is active, a system prompt is injected that instructs the LLM to act like a tutor/instructor, who walks the user through the thought process of discovering the solution to their problem instead of offering up a straight answer.
See this example:
Added
Additional Information
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.