{#each selectedModels as selectedModel, selectedModelIdx}
({ value: model.id, label: model.name, model: model }))} showTemporaryChatControl={$user.role === 'user' ? ($config?.permissions?.chat?.temporary ?? true) : true} bind:value={selectedModel} />
{#if selectedModelIdx === 0}
{ selectedModels = [...selectedModels, '']; }} aria-label="Add Model" >
{:else}
{ selectedModels.splice(selectedModelIdx, 1); selectedModels = selectedModels; }} aria-label="Remove Model" >
{/if}
{/each}
{#if showSetDefault && !$mobile}
{$i18n.t('Set as default')}
{/if}