feat: Allow using prompt variables everywhere #5369

Closed
opened 2025-11-11 16:18:56 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @gjsmo on GitHub (May 28, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

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

Originally created by @gjsmo on GitHub (May 28, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### 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_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5369