with offline mode enabled, which means the host can not access to the internet. so any connection to the internet must be prevented.
Actual Behavior:
api /api/models is still trying to connect openai which will hang the site for a long period of time.
Description
Bug Summary: /api/models is trying to access to the internet when in offline mode, which will have a significant impact on the user experience.
Reproduction Details
Steps to Reproduce:
install everything in a host that can not access to the internet. run open-webui, login and you will see the page gets stuck because of /api/models
Originally created by @Zephor5 on GitHub (Jan 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8753
# Bug Report
## Installation Method
pip
## Environment
- **Open WebUI Version:** v0.5.4
## Expected Behavior:
with offline mode enabled, which means the host can not access to the internet. so any connection to the internet must be prevented.
## Actual Behavior:
api `/api/models` is still trying to connect openai which will hang the site for a long period of time.
## Description
**Bug Summary:**
`/api/models` is trying to access to the internet when in offline mode, which will have a significant impact on the user experience.
## Reproduction Details
**Steps to Reproduce:**
install everything in a host that can not access to the internet. run open-webui, login and you will see the page gets stuck because of `/api/models`
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 @Zephor5 on GitHub (Jan 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8753
Bug Report
Installation Method
pip
Environment
Expected Behavior:
with offline mode enabled, which means the host can not access to the internet. so any connection to the internet must be prevented.
Actual Behavior:
api
/api/modelsis still trying to connect openai which will hang the site for a long period of time.Description
Bug Summary:
/api/modelsis trying to access to the internet when in offline mode, which will have a significant impact on the user experience.Reproduction Details
Steps to Reproduce:
install everything in a host that can not access to the internet. run open-webui, login and you will see the page gets stuck because of
/api/models@TheMasterFX commented on GitHub (Jan 22, 2025):
Set ENABLE_OPENAI_API to False doesn't help?