[GH-ISSUE #6896] enhancement: lazy load models list #53189

Closed
opened 2026-05-05 14:25:23 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @lvickyj on GitHub (Nov 13, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6896

Initial page load when having many api keys loaded, especially to api provders with many models is very slow. (5s)

I tried to do page load without any models enabled, it is much faster, less than 800ms.
Screenshot 2024-11-13 at 4 21 22 PM
analytics indicate that fetching models is taking upwards of 3s, which I'm guessing is due to querying /models for each provider at time. It would be faster to lazy load/eager load the full list of models and only load the default model(s) before initial page load and load the full list on clicking the dropdown menu or in the background after initial page load

Originally created by @lvickyj on GitHub (Nov 13, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/6896 Initial page load when having many api keys loaded, especially to api provders with many models is very slow. (5s) I tried to do page load without any models enabled, it is much faster, less than 800ms. <img width="694" alt="Screenshot 2024-11-13 at 4 21 22 PM" src="https://github.com/user-attachments/assets/31e875b5-6014-4fa5-a64b-03c32234fd3c"> analytics indicate that fetching models is taking upwards of 3s, which I'm guessing is due to querying /models for each provider at time. It would be faster to lazy load/eager load the full list of models and only load the default model(s) before initial page load and load the full list on clicking the dropdown menu or in the background after initial page load
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#53189