{ searchValue = ''; }} selected={items.find((item) => item.value === value)} onSelectedChange={(selectedItem) => { value = selectedItem.value; }} > {#if searchEnabled}

{/if}
{#each filteredItems as item}
{item.label}
{#if item.info.external}
{/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}