{#if edit} {$i18n.t('Edit Connection')} {:else} {$i18n.t('Add Connection')} {/if}

{ e.preventDefault(); submitHandler(); }} >
{#if !direct}
{$i18n.t('Connection Type')}
{/if}
{#if auth_type === 'bearer'} {:else if auth_type === 'none'}
{$i18n.t('No authentication')}
{:else if auth_type === 'session'}
{$i18n.t('Forwards system user session credentials to authenticate')}
{:else if auth_type === 'system_oauth'}
{$i18n.t('Forwards system user OAuth access token to authenticate')}
{:else if ['azure_ad', 'microsoft_entra_id'].includes(auth_type)}
{$i18n.t('Uses DefaultAzureCredential to authenticate')}
{/if}
{#if !ollama && !direct}