{ provider = "openai"; }}>
OpenAI
{ provider = "anthropic"; }}>
Anthropic (Claude)
{ provider = "custom"; }}>
{t("ai.custom")}
{#if provider === "openai"}
{t("ai.model")}
{t("ai.apiKey")}
{ showKey = !showKey; }} aria-label={showKey ? "Hide" : "Show"}> {#if showKey}
{:else}
{/if}
{:else if provider === "anthropic"}
{t("ai.model")}
{t("ai.apiKey")}
{ showKey = !showKey; }} aria-label={showKey ? "Hide" : "Show"}> {#if showKey}
{:else}
{/if}
{:else}
{t("ai.endpointUrl")}
{t("ai.model")}
{t("ai.apiKeyOptional")}
{ showKey = !showKey; }} aria-label={showKey ? "Hide" : "Show"}> {#if showKey}
{:else}
{/if}
{t("ai.customHint")}
{/if} {#if error}
{error}
{/if}