mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
Time to first response degraded by 2 -4 seconds since 0.4, SOLUTION #2737
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 @kim-gtek on GitHub (Nov 21, 2024).
I noticed that OPENWEBUI takes 2-4 seconds longer to load chats.
By looking at the logs, the problem is clear, before every chat OPENWEBUI calls
get_all_models()I have fixed this issue by adding the environment variables:
backend/open_webui/config.py
Line 533:
These are imported into the following files:
backend/open_webui/apps/main.py
Line 1007:
backend/open_webui/apps/ollama/main.py
Line 260:
backend/open_webui/apps/openai/main.py
Line 372:
Obviously importing from aiocache import cached to each file, and adding the corresponding environment variable to from open_webui.config import (
@tkg61 commented on GitHub (Nov 21, 2024):
Seeing this as well!