{#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('Experimental')}
{#if showExperimentalOllama}
{ uploadModelHandler(); }} >
{$i18n.t('Upload a GGUF model')}
{#if modelUploadMode === 'file'}
{ console.log(modelInputFile); }} accept=".gguf,.safetensors" required hidden />
{:else}
{/if}
{#if (modelUploadMode === 'file' && modelInputFile && modelInputFile.length > 0) || (modelUploadMode === 'url' && modelFileUrl !== '')} {/if}
{#if (modelUploadMode === 'file' && modelInputFile && modelInputFile.length > 0) || (modelUploadMode === 'url' && modelFileUrl !== '')}
{$i18n.t('Modelfile Content')}