OFFLINE mode still access internet #3347

Closed
opened 2025-11-11 15:29:46 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Zephor5 on GitHub (Jan 22, 2025).

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

Originally created by @Zephor5 on GitHub (Jan 22, 2025). # 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`
Author
Owner

@TheMasterFX commented on GitHub (Jan 22, 2025):

Set ENABLE_OPENAI_API to False doesn't help?

Image

@TheMasterFX commented on GitHub (Jan 22, 2025): Set ENABLE_OPENAI_API to False doesn't help? ![Image](https://github.com/user-attachments/assets/b6c55f5b-f075-4f74-ac4c-b61aa38c6269)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3347