{#if ollamaVersion}
Manage Ollama Models
{#if OLLAMA_URLS.length > 1}
{#each OLLAMA_URLS as url, idx}
{url}
{/each}
{/if}
Pull a model from Ollama.com
{ pullModelHandler(); }} disabled={modelTransferring} > {#if modelTransferring}
{:else}
{/if}
To access the available model names for downloading,
click here.
{#if Object.keys(modelDownloadStatus).length > 0} {#each Object.keys(modelDownloadStatus) as model}
{model}
{modelDownloadStatus[model].pullProgress ?? 0}%
{modelDownloadStatus[model].digest}
{/each} {/if}
Delete a model
{#if !deleteModelTag}
Select a model
{/if} {#each $models.filter((m) => m.size != null && (selectedOllamaUrlIdx === null ? true : (m?.urls ?? []).includes(selectedOllamaUrlIdx))) as model}
{model.name + ' (' + (model.size / 1024 ** 3).toFixed(1) + ' GB)'}
{/each}
{ deleteModelHandler(); }} >
Experimental
{ showExperimentalOllama = !showExperimentalOllama; }}>{showExperimentalOllama ? 'Hide' : 'Show'}
{#if showExperimentalOllama}
{ uploadModelHandler(); }} >
Upload a GGUF model
{ if (modelUploadMode === 'file') { modelUploadMode = 'url'; } else { modelUploadMode = 'file'; } }} type="button" > {#if modelUploadMode === 'file'}
File Mode
{:else}
URL Mode
{/if}
{#if modelUploadMode === 'file'}
{ console.log(modelInputFile); }} accept=".gguf,.safetensors" required hidden />
{ modelUploadInputElement.click(); }} > {#if modelInputFile && modelInputFile.length > 0} {modelInputFile[0].name} {:else} Click here to select {/if}
{:else}
{/if}
{#if (modelUploadMode === 'file' && modelInputFile && modelInputFile.length > 0) || (modelUploadMode === 'url' && modelFileUrl !== '')}
{#if modelTransferring}
{:else}
{/if}
{/if}
{#if (modelUploadMode === 'file' && modelInputFile && modelInputFile.length > 0) || (modelUploadMode === 'url' && modelFileUrl !== '')}
Modelfile Content
{/if}
To access the GGUF models available for downloading,
click here.
{#if uploadProgress !== null}
Upload Progress
{uploadProgress ?? 0}%
{modelFileDigest}
{/if}
{/if}
{/if}
Manage LiteLLM Models
{ showLiteLLM = !showLiteLLM; }}>{showLiteLLM ? 'Hide' : 'Show'}
{#if showLiteLLM}
Add a model
{ showLiteLLMParams = !showLiteLLMParams; }} >{showLiteLLMParams ? 'Hide Additional Params' : 'Show Additional Params'}
{ addLiteLLMModelHandler(); }} >
{#if showLiteLLMParams}
Model Name
API Base URL
API Key
API RPM
Max Tokens
{/if}
Not sure what to add?
Click here for help.
Delete a model
{#if !deleteLiteLLMModelId}
Select a model
{/if} {#each liteLLMModelInfo as model}
{model.model_name}
{/each}
{ deleteLiteLLMModelHandler(); }} >
{/if}