{ searchValue = ''; window.setTimeout(() => document.getElementById('model-search-input')?.focus(), 0); }} >
{#if selectedModel} {selectedModel.label} {:else} {placeholder} {/if}
{#if searchEnabled}

{/if}
{#each filteredItems as item} {:else}
No results found
{/each} {#if !(searchValue.trim() in $MODEL_DOWNLOAD_POOL) && searchValue && ollamaVersion && $user.role === 'admin'} {/if} {#each Object.keys($MODEL_DOWNLOAD_POOL) as model}
Downloading "{model}" {'pullProgress' in $MODEL_DOWNLOAD_POOL[model] ? `(${$MODEL_DOWNLOAD_POOL[model].pullProgress}%)` : ''}
{#if 'digest' in $MODEL_DOWNLOAD_POOL[model] && $MODEL_DOWNLOAD_POOL[model].digest}
{$MODEL_DOWNLOAD_POOL[model].digest}
{/if}
{/each}