This commit is contained in:
Timothy Jaeryang Baek 2025-09-18 17:53:11 -05:00
parent 48cd72fab0
commit 1c78594379

View file

@ -286,9 +286,11 @@
} }
}; };
onMount(async () => { const setOllamaVersion = async () => {
ollamaVersion = await getOllamaVersion(localStorage.token).catch((error) => false); ollamaVersion = await getOllamaVersion(localStorage.token).catch((error) => false);
};
onMount(async () => {
if (items) { if (items) {
tags = items tags = items
.filter((item) => !(item.model?.info?.meta?.hidden ?? false)) .filter((item) => !(item.model?.info?.meta?.hidden ?? false))
@ -300,6 +302,10 @@
} }
}); });
$: if (show) {
setOllamaVersion();
}
const cancelModelPullHandler = async (model: string) => { const cancelModelPullHandler = async (model: string) => {
const { reader, abortController } = $MODEL_DOWNLOAD_POOL[model]; const { reader, abortController } = $MODEL_DOWNLOAD_POOL[model];
if (abortController) { if (abortController) {