Commit AI
AI settings
{ e.preventDefault(); void handleSave(); }}>
{ provider = "openai"; }}>
OpenAI
{ provider = "anthropic"; }}>
Anthropic (Claude)
{ provider = "custom"; }}>
Custom endpoint
{#if provider === "openai"}
Model
API key
{ showKey = !showKey; }} aria-label={showKey ? "Hide" : "Show"}> {#if showKey}
{:else}
{/if}
{:else if provider === "anthropic"}
Model
API key
{ showKey = !showKey; }} aria-label={showKey ? "Hide" : "Show"}> {#if showKey}
{:else}
{/if}
{:else}
Endpoint URL
Model
API key (optional)
{ showKey = !showKey; }} aria-label={showKey ? "Hide" : "Show"}> {#if showKey}
{:else}
{/if}
For local OpenAI-compatible servers like Ollama or LM Studio. The base URL should end in /v1.
{/if} {#if error}
{error}
{/if}
Cancel
{#if saving}
{:else}
{/if} Save