Draft
feat: Show default prompt templates as placeholders in admin task settings#1
Conversation
Co-authored-by: FFDVDGD <82321430+FFDVDGD@users.noreply.github.com> Agent-Logs-Url: https://github.com/FFDVDGD/open-webui/sessions/71295bcc-5283-42f8-9127-50d44789843a
Copilot
AI
changed the title
[WIP] 添加自动生成标题的默认提示词功能
feat: Show default prompt templates as placeholders in admin task settings
Mar 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Admin task prompt settings previously showed only
"Leave empty to use the default prompt, or enter a custom prompt"as placeholder text — the actual default prompt content was invisible without reading source code. This exposes allDEFAULT_*prompt templates through the task config API and renders them as textarea placeholders.Added
GET /api/v1/tasks/configandPOST /api/v1/tasks/config/updatenow returnDEFAULT_*fields alongside each configurable template:DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATEDEFAULT_FOLLOW_UP_GENERATION_PROMPT_TEMPLATEDEFAULT_TAGS_GENERATION_PROMPT_TEMPLATEDEFAULT_QUERY_GENERATION_PROMPT_TEMPLATEDEFAULT_IMAGE_PROMPT_GENERATION_PROMPT_TEMPLATEDEFAULT_TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATEDEFAULT_VOICE_MODE_PROMPT_TEMPLATEChanged
placeholderinstead of the generic hint string. When the field is empty, the full default prompt is visible inline.DEFAULT_TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATEadded to imports intasks.py(was missing despite being defined inconfig.py).Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
generate_title(and sibling endpoints) is unchanged; this is purely a discoverability improvement.Screenshots or Videos
Contributor License Agreement
Note
Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.