Skip to content

Commit 0b851cf

Browse files
Classic298ahxxm
andauthored
fix: offline model retrieval, re-raise to disable instead of returning useless fallback (open-webui#22106)
Co-authored-by: ahxxm <1286225+ahxxm@users.noreply.github.com>
1 parent ff86283 commit 0b851cf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/open_webui/retrieval/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,8 @@ def get_model_path(model: str, update_model: bool = False):
13061306
return model_repo_path
13071307
except Exception as e:
13081308
log.exception(f"Cannot determine model snapshot path: {e}")
1309+
if OFFLINE_MODE:
1310+
raise
13091311
return model
13101312

13111313

0 commit comments

Comments
 (0)