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:
To not make any request to external web when HF_HUB_OFFLINE=1 is defined
Actual Behavior:
After start of the request, the webui sends a request to open.ai even with HF_HUB_OFFLINE=1
Description
Bug Summary:
Open webui server make a request to api.openai.com with HF_HUB_OFFLINE=1 defined
Reproduction Details
Steps to Reproduce:
remove internet connection
HF_HUB_OFFLINE=1
open-webui serve
make a get request to localhost:8080
Logs and Screenshots
INFO [open_webui.routers.openai] get_all_models()
ERROR [open_webui.routers.openai] Connection error: Cannot connect to host api.openai.com:443 ssl:default [Connect call failed ('162.159.140.245', 443)]
INFO [open_webui.routers.ollama] get_all_models()
Originally created by @tiago375 on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10001
## Installation Method
pip install open-webui
## Environment
- **Open WebUI Version:** 0.5.11
- **Ollama (if applicable):** 0.5.7
- **Operating System:** debian 12
- **Browser (if applicable):** Firefox 135.0
**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.
- [ ] 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:
To not make any request to external web when `HF_HUB_OFFLINE=1` is defined
## Actual Behavior:
After start of the request, the webui sends a request to open.ai even with `HF_HUB_OFFLINE=1`
## Description
**Bug Summary:**
Open webui server make a request to api.openai.com with `HF_HUB_OFFLINE=1` defined
## Reproduction Details
**Steps to Reproduce:**
remove internet connection
```
HF_HUB_OFFLINE=1
open-webui serve
```
make a get request to localhost:8080
## Logs and Screenshots
```
INFO [open_webui.routers.openai] get_all_models()
ERROR [open_webui.routers.openai] Connection error: Cannot connect to host api.openai.com:443 ssl:default [Connect call failed ('162.159.140.245', 443)]
INFO [open_webui.routers.ollama] get_all_models()
```
from my understanding, the variable only serves to make OpenWebUI itself not touch the internet. I.e. don't check for updates, don't sent metadata or whatever else. This does specifically not apply to models and OpenAI integrations. If you don't want to use external models (that require internet access obviously) then don't use it.
You may be reliant on external models, while at the same time wanting OpenWebUI to not check for updates or other stuff, so keeping OpenWebUI itself from using the internet.
<!-- gh-comment-id:2659694184 -->
@Classic298 commented on GitHub (Feb 14, 2025):
from my understanding, the variable only serves to make OpenWebUI **_itself_** not touch the internet. I.e. don't check for updates, don't sent metadata or whatever else. This does specifically not apply to models and OpenAI integrations. If you don't want to use external models (that require internet access obviously) then don't use it.
You may be reliant on external models, while at the same time wanting OpenWebUI to not check for updates or other stuff, so keeping OpenWebUI itself from using the internet.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @tiago375 on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10001
Installation Method
pip install open-webui
Environment
Open WebUI Version: 0.5.11
Ollama (if applicable): 0.5.7
Operating System: debian 12
Browser (if applicable): Firefox 135.0
Confirmation:
Expected Behavior:
To not make any request to external web when
HF_HUB_OFFLINE=1is definedActual Behavior:
After start of the request, the webui sends a request to open.ai even with
HF_HUB_OFFLINE=1Description
Bug Summary:
Open webui server make a request to api.openai.com with
HF_HUB_OFFLINE=1definedReproduction Details
Steps to Reproduce:
remove internet connection
make a get request to localhost:8080
Logs and Screenshots
@Classic298 commented on GitHub (Feb 14, 2025):
from my understanding, the variable only serves to make OpenWebUI itself not touch the internet. I.e. don't check for updates, don't sent metadata or whatever else. This does specifically not apply to models and OpenAI integrations. If you don't want to use external models (that require internet access obviously) then don't use it.
You may be reliant on external models, while at the same time wanting OpenWebUI to not check for updates or other stuff, so keeping OpenWebUI itself from using the internet.