{#if enabledArr.length === 0} {:else}
{#each groupedModels as [company, models] (company)}

{company}

{#each models as model (model._id)} {@const isSelected = settings.modelId === model.model_id} {@const formatted = formatModelName(model.model_id)} {@const openRouterModel = modelsState .from(Provider.OpenRouter) .find((m) => m.id === model.model_id)} {@const disabled = onlyImageModels && openRouterModel && !supportsImages(openRouterModel)}
{#if getModelIcon(model.model_id)} {@const ModelIcon = getModelIcon(model.model_id)} {/if}

{isMobile.current ? formatted.full : formatted.primary}

{#if !isMobile.current}

{formatted.secondary}

{/if}
{#if openRouterModel && supportsImages(openRouterModel)} {#snippet trigger(tooltip)}
{/snippet} Supports image anaylsis
{/if}
{/each}
{/each}
{/if}