{ searchValue = ''; window.setTimeout(() => document.getElementById('model-search-input')?.focus(), 0); }} selected={items.find((item) => item.value === value) ?? ''} onSelectedChange={(selectedItem) => { value = selectedItem.value; }} > {#if searchEnabled}

{/if}
{#each filteredItems as item}
{item.label} {item.info?.details?.parameter_size ?? ''}
{#if item.info.external}
{:else}
{/if}
{#if value === item.value}
{/if}
{: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}