mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
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. |
||
|---|---|---|
| .. | ||
| data | ||
| internal | ||
| migrations | ||
| models | ||
| retrieval | ||
| routers | ||
| socket | ||
| static | ||
| storage | ||
| test | ||
| utils | ||
| __init__.py | ||
| alembic.ini | ||
| config.py | ||
| constants.py | ||
| env.py | ||
| functions.py | ||
| main.py | ||
| tasks.py | ||