mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
[GH-ISSUE #10570] Support adding current date and time variables in the system prompt #86680
Reference in New Issue
Block a user
Originally created by @CookSleep on GitHub (Feb 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10570
Is your feature request related to a problem? Please describe.
If the model could know the sending time of the current message, I believe it would greatly improve the model's response effect in many scenarios. (I have also experienced this in other open source projects.)
Describe the solution you'd like
Support adding current date and time variables in the system prompt
Describe alternatives you've considered
I tried a function, but it works by adding a piece of text at the beginning of the message, which seriously affects the aesthetics of the conversation history (adding a large and obtrusive prompt), and its time zone setting is problematic, I cannot change the time zone correctly.
I believe that introducing current date and time variables in the system prompt can completely eliminate this shortcoming and bring a better experience
@tjbck commented on GitHub (Feb 22, 2025):
Is supported.