{ deleteModelHandler(); }} />
{#if ollamaEnabled} {#if ollamaVersion !== null}
{$i18n.t('Manage Ollama Models')}
{#if OLLAMA_URLS.length > 0}
{#if updateModelId} Updating "{updateModelId}" {updateProgress ? `(${updateProgress}%)` : ''} {/if} {/if}
{$i18n.t('Pull a model from Ollama.com')}
{$i18n.t('To access the available model names for downloading,')} {$i18n.t('click here.')}
{#if Object.keys($MODEL_DOWNLOAD_POOL).length > 0} {#each Object.keys($MODEL_DOWNLOAD_POOL) as model} {#if 'pullProgress' in $MODEL_DOWNLOAD_POOL[model]}
{model}
{$MODEL_DOWNLOAD_POOL[model].pullProgress ?? 0}%
{#if 'digest' in $MODEL_DOWNLOAD_POOL[model]}
{$MODEL_DOWNLOAD_POOL[model].digest}
{/if}
{/if} {/each} {/if}
{$i18n.t('Delete a model')}
{$i18n.t('Create a model')}