mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #14447] feat: Allow using prompt variables everywhere #17257
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?
Originally created by @gjsmo on GitHub (May 28, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14447
Check Existing Issues
Problem Description
Currently, I can use prompt variables such as
{{CURRENT_TIME}}or{{USER_LANGUAGE}}in system prompts, which is very helpful. However, I cannot use these in for example, the tag or title generation prompts.Desired Solution you'd like
The variable replacement should be applied to all prompt fields, including system prompt, RAG prompt, tag/title generation prompt, etc.
Alternatives Considered
It's possible to add all of this information directly to the system prompt, however it's often not needed there. This increases context unnecessarily, slowing down generation speed.
Additional Context
No response