mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
bug: CURRENT_TIMEZONE prompt variable is not working #2992
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 @nphalem on GitHub (Dec 11, 2024).
Bug Report
Important Notes
Installation Method
Docker compose with searxng
Environment
Open WebUI Version: v0.4.8
Ollama (if applicable): v0.5.1
Operating System: Arch Linux 6.12.4
Confirmation:
Expected Behavior:
Model should receive information regarding my current timezone.
Actual Behavior:
Model receives literal string "CURRENT_TIMEZONE".
Description
I'm using
{{CURRENT_TIMEZONE}}prompt variable on model level with other prompt variables but this one doesn't seem to work. See https://docs.openwebui.com/features/#-conversationsReproduction Details
Steps to Reproduce:
{{CURRENT_TIMEZONE}}Logs and Screenshots
Docker Container Logs:
Screenshots/Screen Recordings (if applicable):

@silentoplayz commented on GitHub (Dec 14, 2024):
I certainly believe there's some validity to this. The same could also be said for the
{{USER_LANGUAGE}}prompt variable when added to a model's system prompt from the model editor page.@arbv commented on GitHub (Jan 14, 2025):
I can confirm both of these issues.
{{USER_LANGUAGE}}is an important cue for an LLM regarding which language to use, having it in system prompt could help in multilingual setting.Also,
{{CURRENT_TIMEZONE}}is important for tool calling if the LLM needs to return sub-realtime data using tools.Having these supported for system prompt would have been helpful.
@tjbck commented on GitHub (Jan 30, 2025):
Should be addressed with
cc99673906, testing wanted here!@silentoplayz commented on GitHub (Jan 30, 2025):
Looks good to me! It seems solved. 👍🏼