mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
Support adding current date and time variables in the system prompt #4049
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 @CookSleep on GitHub (Feb 22, 2025).
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.