open-webui/backend/open_webui
Vishwanath Martur 00e6ffe83c Fix offline docker container startup issue
Related to #7207

Modify the code to allow the docker container to start in an offline environment for versions >= 0.4.0.

* **backend/open_webui/retrieval/utils.py**
  - Import `OFFLINE_MODE` from `open_webui.env`.
  - Set `local_files_only` to `True` when `OFFLINE_MODE` is enabled in `snapshot_kwargs`.

* **backend/open_webui/env.py**
  - Add logic to set `HF_HUB_OFFLINE` environment variable to `1` when `OFFLINE_MODE` is enabled.

* **README.md**
  - Document setting `HF_HUB_OFFLINE` environment variable to `1` for offline environments.
2024-12-29 11:53:09 +05:30
..
data
internal
migrations
models enh: channel notification 2024-12-25 00:53:25 -07:00
retrieval Fix offline docker container startup issue 2024-12-29 11:53:09 +05:30
routers enh: user status indicator 2024-12-26 23:29:33 -08:00
socket enh: user status indicator 2024-12-26 23:29:33 -08:00
static
storage
test
utils fix: api key restrictions 2024-12-27 00:32:25 -08:00
__init__.py fix: pip install not working 2024-12-25 11:36:40 -07:00
alembic.ini
config.py enh: configurable api key endpoint restrictions 2024-12-26 20:57:51 -08:00
constants.py
env.py Fix offline docker container startup issue 2024-12-29 11:53:09 +05:30
functions.py
main.py enh: configurable api key endpoint restrictions 2024-12-26 20:57:51 -08:00
tasks.py