mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
issue: If server has no access to internet - page loading takes around 10 seconds due to OpenAI timeout #4718
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 @PolarNick239 on GitHub (Apr 4, 2025).
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.6.0
Ollama Version (if applicable)
0.6.2
Operating System
Ubuntu 22.04
Browser (if applicable)
Brave Version 1.77.95 Chromium: 135.0.7049.52
Confirmation
README.md.Expected Behavior
If the server with ollama + open-webui has no internet access - everything works fine (opening webui from other computers in LAN).
Actual Behavior
If Internet is in-accessible - each page loads very slow - in ~10 seconds.
Logs on open-webui arount this delay looks like:
Apr 04 16:36:16 username open-webui[1010]: 2025-04-04 16:36:16.686 | INFO | open_webui.routers.openai:get_all_models:389 - get_all_models() - {}
Apr 04 16:36:26 username open-webui[1010]: 2025-04-04 16:36:26.775 | ERROR | open_webui.routers.openai:send_get_request:81 - Connection error: - {}
Steps to Reproduce
Logs & Screenshots
If Internet is in-accessible - each page loads very slow - in ~10 seconds.
Logs on open-webui arount this delay looks like:
Apr 04 16:36:16 username open-webui[1010]: 2025-04-04 16:36:16.686 | INFO | open_webui.routers.openai:get_all_models:389 - get_all_models() - {}
Apr 04 16:36:26 username open-webui[1010]: 2025-04-04 16:36:26.775 | ERROR | open_webui.routers.openai:send_get_request:81 - Connection error: - {}
Additional Information
Workaround:
Open Admin Panel -> Settings -> Connections -> disable OpenAI API:
@tjbck commented on GitHub (Apr 4, 2025):
Intended behaviour check: https://docs.openwebui.com/getting-started/env-configuration#aiohttp_client_timeout_model_list
@PolarNick239 commented on GitHub (Apr 4, 2025):
So, by default, are OpenAI models queried in any way? Isn't it possible to add a simple check to see if there is an API key? Or do requests to OpenAI models make sense even if the user hasn't specified an OpenAI API key?