mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-06 11:37:57 -05:00
fix: stop deleting the model when an Ollama download is cancelled (#31824)
This commit is contained in:
2 files changed
-2
No files matched your search
@@ -488,7 +488,6 @@
|
||||
MODEL_DOWNLOAD_POOL.set({
|
||||
...$MODEL_DOWNLOAD_POOL
|
||||
});
|
||||
await deleteModel(localStorage.token, model);
|
||||
toast.success($i18n.t('{{model}} download has been canceled', { model: model }));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -774,7 +774,6 @@
|
||||
MODEL_DOWNLOAD_POOL.set({
|
||||
...$MODEL_DOWNLOAD_POOL
|
||||
});
|
||||
await deleteModel(localStorage.token, model);
|
||||
toast.success($i18n.t('{{model}} download has been canceled', { model: model }));
|
||||
} else {
|
||||
const displayModel = $MODEL_DOWNLOAD_POOL[model]?.model ?? model;
|
||||
|
||||
Reference in new issue
Block a user