Key
(showKeyModal = true)}> {activeKeyId ?? "Select Key"}
Model
{activeModelId ?? "Select Model"}
{#if activeModelId}
Thinking
onReasoningChange(e.currentTarget.value)} >
Off
Low
Medium
High
Max
{/if}
{#if showKeyModal}
Select Key
{#each keys as key}
selectKey(key.id)} >
{key.id}
{key.provider}
{key.status}
{/each}
(showKeyModal = false)}>Cancel
(showKeyModal = false)} aria-label="Close modal">
{/if} {#if showModelModal}
Select Model
{#if loadingModels}
{:else if modelError}
{modelError}
{:else}
{#each availableModels as model}
selectModel(model)} > {model}
{/each}
{/if}
(showModelModal = false)}>Cancel
(showModelModal = false)} aria-label="Close modal">
{/if}