mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
refac
This commit is contained in:
parent
48cd72fab0
commit
1c78594379
1 changed files with 7 additions and 1 deletions
|
|
@ -286,9 +286,11 @@
|
|||
}
|
||||
};
|
||||
|
||||
onMount(async () => {
|
||||
const setOllamaVersion = async () => {
|
||||
ollamaVersion = await getOllamaVersion(localStorage.token).catch((error) => false);
|
||||
};
|
||||
|
||||
onMount(async () => {
|
||||
if (items) {
|
||||
tags = items
|
||||
.filter((item) => !(item.model?.info?.meta?.hidden ?? false))
|
||||
|
|
@ -300,6 +302,10 @@
|
|||
}
|
||||
});
|
||||
|
||||
$: if (show) {
|
||||
setOllamaVersion();
|
||||
}
|
||||
|
||||
const cancelModelPullHandler = async (model: string) => {
|
||||
const { reader, abortController } = $MODEL_DOWNLOAD_POOL[model];
|
||||
if (abortController) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue