Support adding current date and time variables in the system prompt #4049

Closed
opened 2025-11-11 15:45:11 -06:00 by GiteaMirror · 1 comment
Owner

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

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
Author
Owner

@tjbck commented on GitHub (Feb 22, 2025):

Is supported.

@tjbck commented on GitHub (Feb 22, 2025): Is supported.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4049