bug: CURRENT_TIMEZONE prompt variable is not working #2992

Closed
opened 2025-11-11 15:19:11 -06:00 by GiteaMirror · 4 comments
Owner

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:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

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/#-conversations

Reproduction Details

Steps to Reproduce:

  1. Edit a model in settings edit his system prompt and add {{CURRENT_TIMEZONE}}
  2. Save changes
  3. Run the model and asking him about current timezone

Logs and Screenshots

Docker Container Logs:

Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
Loading WEBUI_SECRET_KEY from .webui_secret_key
/app/backend/open_webui
/app/backend
/app
Running migrations

  ___                    __        __   _     _   _ ___
 / _ \ _ __   ___ _ __   \ \      / /__| |__ | | | |_ _|
| | | | '_ \ / _ \ '_ \   \ \ /\ / / _ \ '_ \| | | || |
| |_| | |_) |  __/ | | |   \ V  V /  __/ |_) | |_| || |
 \___/| .__/ \___|_| |_|    \_/\_/ \___|_.__/ \___/|___|
      |_|


v0.4.8 - building the best open-source AI user interface.

https://github.com/open-webui/open-webui

INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpi3Z7 HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=websocket&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 400 Bad Request
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpi3ZI&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpi3ZJ&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ollama/api/version HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /static/favicon.png HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /api/v1/users/user/settings HTTP/1.0" 200 OK
{'model': 'hf.co/bartowski/Qwen2.5-7B-Instruct-GGUF:Q6_K_L', 'messages': [{'role': 'user', 'content': '### Task:\nYou are an autocompletion system. Continue the text in `<text>` based on the **completion type** in `<type>` and the given language.  \n\n### **Instructions**:\n1. Analyze `<text>` for context and meaning.  \n2. Use `<type>` to guide your output:  \n   - **General**: Provide a natural, concise continuation.  \n   - **Search Query**: Complete as if generating a realistic search query.  \n3. Start as if you are directly continuing `<text>`. Do **not** repeat, paraphrase, or respond as a model. Simply complete the text.  \n4. Ensure the continuation:\n   - Flows naturally from `<text>`.  \n   - Avoids repetition, overexplaining, or unrelated ideas.  \n5. If unsure, return: `{ "text": "" }`.  \n\n### **Output Rules**:\n- Respond only in JSON format: `{ "text": "<your_completion>" }`.\n\n### **Examples**:\n#### Example 1:  \nInput:  \n<type>General</type>  \n<text>The sun was setting over the horizon, painting the sky</text>  \nOutput:  \n{ "text": "with vibrant shades of orange and pink." }\n\n#### Example 2:  \nInput:  \n<type>Search Query</type>  \n<text>Top-rated restaurants in</text>  \nOutput:  \n{ "text": "New York City for Italian cuisine." }  \n\n---\n### Context:\n<chat_history>\n\n</chat_history>\n<type>search query</type>  \n<text>What information regarding the timezone did I provided you exactly?</text>  \n#### Output:\n'}], 'stream': False, 'metadata': {'task': 'autocomplete_generation', 'task_body': {'model': 'hf.co/bartowski/Qwen2.5-7B-Instruct-GGUF:Q6_K_L', 'prompt': 'What information regarding the timezone did I provided you exactly?', 'type': 'search query', 'stream': False}, 'chat_id': None}}
INFO:     192.168.1.13:0 - "POST /api/v1/chats/new HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /api/v1/chats/?page=1 HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /api/v1/memories/query HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /api/task/auto/completions HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpi3Za&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiA6R&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiAM1&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiA6R.0&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiAbf&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiAME&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiAbr&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiArH&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiArF&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ollama/api/chat HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiB4v&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiArR&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiBKY&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiB54&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiBKv&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /audio/api/v1/speech HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiBa9&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiFg5&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiFg3&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiFgi&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /api/v1/chats/?page=1 HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiFpx&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiFpw&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /api/chat/completed HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /api/v1/chats/?page=1 HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /static/favicon.png HTTP/1.0" 304 Not Modified
INFO:     192.168.1.13:0 - "POST /api/task/title/completions HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiFzP&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiFq8&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /api/v1/chats/?page=1 HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe/tags HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiGD2&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiFzc&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiGDF&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiGDc&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "POST /api/task/tags/completions HTTP/1.0" 200 OK
[] technology
INFO:     192.168.1.13:0 - "POST /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe/tags HTTP/1.0" 200 OK
['technology'] timezone
INFO:     192.168.1.13:0 - "POST /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe/tags HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /api/v1/chats/all/tags HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /api/v1/chats/?page=1 HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiGDd&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK
INFO:     192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiGOt&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK

Screenshots/Screen Recordings (if applicable):
image

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:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## 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/#-conversations ## Reproduction Details **Steps to Reproduce:** 1. Edit a model in settings edit his system prompt and add `{{CURRENT_TIMEZONE}}` 2. Save changes 3. Run the model and asking him about current timezone ## Logs and Screenshots **Docker Container Logs:** ``` Loading WEBUI_SECRET_KEY from file, not provided as an environment variable. Loading WEBUI_SECRET_KEY from .webui_secret_key /app/backend/open_webui /app/backend /app Running migrations ___ __ __ _ _ _ ___ / _ \ _ __ ___ _ __ \ \ / /__| |__ | | | |_ _| | | | | '_ \ / _ \ '_ \ \ \ /\ / / _ \ '_ \| | | || | | |_| | |_) | __/ | | | \ V V / __/ |_) | |_| || | \___/| .__/ \___|_| |_| \_/\_/ \___|_.__/ \___/|___| |_| v0.4.8 - building the best open-source AI user interface. https://github.com/open-webui/open-webui INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpi3Z7 HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=websocket&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 400 Bad Request INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpi3ZI&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpi3ZJ&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ollama/api/version HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /static/favicon.png HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /api/v1/users/user/settings HTTP/1.0" 200 OK {'model': 'hf.co/bartowski/Qwen2.5-7B-Instruct-GGUF:Q6_K_L', 'messages': [{'role': 'user', 'content': '### Task:\nYou are an autocompletion system. Continue the text in `<text>` based on the **completion type** in `<type>` and the given language. \n\n### **Instructions**:\n1. Analyze `<text>` for context and meaning. \n2. Use `<type>` to guide your output: \n - **General**: Provide a natural, concise continuation. \n - **Search Query**: Complete as if generating a realistic search query. \n3. Start as if you are directly continuing `<text>`. Do **not** repeat, paraphrase, or respond as a model. Simply complete the text. \n4. Ensure the continuation:\n - Flows naturally from `<text>`. \n - Avoids repetition, overexplaining, or unrelated ideas. \n5. If unsure, return: `{ "text": "" }`. \n\n### **Output Rules**:\n- Respond only in JSON format: `{ "text": "<your_completion>" }`.\n\n### **Examples**:\n#### Example 1: \nInput: \n<type>General</type> \n<text>The sun was setting over the horizon, painting the sky</text> \nOutput: \n{ "text": "with vibrant shades of orange and pink." }\n\n#### Example 2: \nInput: \n<type>Search Query</type> \n<text>Top-rated restaurants in</text> \nOutput: \n{ "text": "New York City for Italian cuisine." } \n\n---\n### Context:\n<chat_history>\n\n</chat_history>\n<type>search query</type> \n<text>What information regarding the timezone did I provided you exactly?</text> \n#### Output:\n'}], 'stream': False, 'metadata': {'task': 'autocomplete_generation', 'task_body': {'model': 'hf.co/bartowski/Qwen2.5-7B-Instruct-GGUF:Q6_K_L', 'prompt': 'What information regarding the timezone did I provided you exactly?', 'type': 'search query', 'stream': False}, 'chat_id': None}} INFO: 192.168.1.13:0 - "POST /api/v1/chats/new HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /api/v1/chats/?page=1 HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /api/v1/memories/query HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /api/task/auto/completions HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpi3Za&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiA6R&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiAM1&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiA6R.0&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiAbf&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiAME&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiAbr&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiArH&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiArF&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ollama/api/chat HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiB4v&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiArR&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiBKY&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiB54&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiBKv&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /audio/api/v1/speech HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiBa9&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiFg5&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiFg3&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiFgi&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /api/v1/chats/?page=1 HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiFpx&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiFpw&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /api/chat/completed HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /api/v1/chats/?page=1 HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /static/favicon.png HTTP/1.0" 304 Not Modified INFO: 192.168.1.13:0 - "POST /api/task/title/completions HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiFzP&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiFq8&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /api/v1/chats/?page=1 HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe/tags HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiGD2&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiFzc&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiGDF&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PEpiGDc&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "POST /api/task/tags/completions HTTP/1.0" 200 OK [] technology INFO: 192.168.1.13:0 - "POST /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe/tags HTTP/1.0" 200 OK ['technology'] timezone INFO: 192.168.1.13:0 - "POST /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe/tags HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /api/v1/chats/002cca7f-dfbb-40c2-8238-328e4e02befe HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /api/v1/chats/all/tags HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /api/v1/chats/?page=1 HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiGDd&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK INFO: 192.168.1.13:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PEpiGOt&sid=LolznQVbqYNqIN48AAAA HTTP/1.0" 200 OK ``` **Screenshots/Screen Recordings (if applicable):** ![image](https://github.com/user-attachments/assets/c7909ccd-73af-482b-9a0e-88663b902028)
Author
Owner

@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.

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

@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.

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

@tjbck commented on GitHub (Jan 30, 2025):

Should be addressed with cc99673906, testing wanted here!

@tjbck commented on GitHub (Jan 30, 2025): Should be addressed with cc996739067e147423da883a962c8a2b536375c1, testing wanted here!
Author
Owner

@silentoplayz commented on GitHub (Jan 30, 2025):

Should be addressed with cc99673, testing wanted here!

Looks good to me! It seems solved. 👍🏼

@silentoplayz commented on GitHub (Jan 30, 2025): > Should be addressed with [cc99673](https://github.com/open-webui/open-webui/commit/cc996739067e147423da883a962c8a2b536375c1), testing wanted here! Looks good to me! It seems solved. 👍🏼
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#2992