diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte index d98a8f39..f2cb4f17 100644 --- a/src/lib/components/chat/SettingsModal.svelte +++ b/src/lib/components/chat/SettingsModal.svelte @@ -277,12 +277,13 @@ } } else { digest = data.digest; + let downloadProgress = 0; if (data.completed) { - pullProgress = Math.round((data.completed / data.total) * 1000) / 10; + downloadProgress = Math.round((data.completed / data.total) * 1000) / 10; } else { - pullProgress = 100; + downloadProgress = 100; } - modelDownloadStatus[opts.modelName] = {pullProgress}; + modelDownloadStatus[opts.modelName] = {pullProgress: downloadProgress, digest: data.digest}; } } } @@ -1277,22 +1278,22 @@ > - + + --> + {#if Object.keys(modelDownloadStatus).length > 0} @@ -1308,12 +1309,17 @@ {#each Object.entries(modelDownloadStatus) as [modelName, payload]} - + +
+ {payload.digest} +
+ {/each}
{modelName}
+
{ payload.pullProgress ?? 0}% -