Model Configuration

Enable/disable models and set fallback order. Primary model is selected above.

{#each models as model, index}
handleDragStart(e, index)} ondragover={handleDragOver} ondrop={(e: DragEvent) => handleDrop(e, index)} class="flex items-center gap-3 p-3 bg-white border rounded-lg cursor-move hover:shadow-sm transition-shadow" class:opacity-50={!model.enabled} role="button" tabindex="0" >
{index + 1}
{model.name}
{model.id}
{#if model.pricing}
{((model.pricing.prompt * 1000 * 100).toFixed(2))} / {((model.pricing.completion * 1000 * 100).toFixed(2))} ยข/1K
{/if}
{/each}