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

{ e.preventDefault(); submitHandler(); }} >
{#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 auth_type === 'microsoft_entra_id'}
{$i18n.t('Uses DefaultAzureCredential to authenticate')}
{/if}
{$i18n.t('Model IDs')}
{#if modelIds.length > 0}
    {#each modelIds as modelId, modelIdx}
  • {modelId}
  • {/each}
{:else}
{$i18n.t( 'Leave empty to include all video models from "{{url}}/models" endpoint, or the server\'s default model if it does not mark which models make videos', { url } )}
{/if}
{ if (event.key === 'Enter') { event.preventDefault(); addModelHandler(); } }} /> {#if availableModelIds.length} {#each availableModelIds.filter((id) => !modelIds.includes(id)) as id} {/each} {/if}
{ showAccessControlModal = true; }} label={$i18n.t('Access Control')} />
{#if showAdvanced}