{#each selectedModels as selectedModel, selectedModelIdx}
model.name !== 'hr') .map((model) => ({ value: model.id, label: model.name + `${model.size ? ` (${(model.size / 1024 ** 3).toFixed(1)}GB)` : ''}` }))} bind:value={selectedModel} />
{#if selectedModelIdx === 0}
{ selectedModels = [...selectedModels, '']; }} >
{:else}
{ selectedModels.splice(selectedModelIdx, 1); selectedModels = selectedModels; }} >
{/if} {#if selectedModelIdx === 0}
{ await showSettings.set(!$showSettings); }} >
{/if}
{/each}
{$i18n.t('Set as default')}