This is a powerful Filter designed for Open WebUI to inject precise temporal context into your conversations. It automatically adds timestamps to both historical and current messages, enabling the Large Language Model to understand the timeline of your dialogue and provide more accurate, context-aware responses.
[YYYY-MM-DD, Weekday, HH:MM:SS]) at the start of a new day.[HH:MM:SS]) for subsequent messages within the same day to enhance readability.After importing and enabling the Filter (You also need to click "More" and enable "Global" so that it appears in all conversations), click the gear icon to the right of "Time Awareness" under Admin Panel > Functions to find the following options:
api_base_url:
http://127.0.0.1:8080date_format:
ISO"ISO" (2025-06-13)"DMY_SLASH" (13/06/2025)"MDY_SLASH" (06/13/2025)"DMY_DOT" (13.06.2025)debug_print_request:
Falsehttpx library. If you have a manual (non-Docker) installation of Open WebUI, ensure it's installed: pip install httpx. Docker users don't need to worry, as it's included in the image.api_base_url is configured correctly so the Filter can reach the Open WebUI API.If you encounter any issues or have suggestions for improvement, please feel free to open an issue on GitHub.
This project is licensed under the MIT License.
Open WebUI Enterprise — White-labeling, SSO, and dedicated support for your team.