{ // console.log('submit'); await setDefaultModels(localStorage.token, defaultModelId); await updateUserPermissions(localStorage.token, { chat: { deletion: chatDeletion, editing: chatEdit, temporary: chatTemporary } }); await updateModelFilterConfig(localStorage.token, whitelistEnabled, whitelistModels); await updateLdapServerHandler(); saveHandler(); await config.set(await getBackendConfig()); }} >
{$i18n.t('User Permissions')}
{$i18n.t('Allow Chat Deletion')}
{$i18n.t('Allow Chat Editing')}
{$i18n.t('Allow Temporary Chat')}

{$i18n.t('LDAP')}
{ updateLdapConfig(localStorage.token, ENABLE_LDAP); }} />
{#if ENABLE_LDAP}
{$i18n.t('Label')}
{$i18n.t('Host')}
{$i18n.t('Port')}
{$i18n.t('Application DN')}
{$i18n.t('Application DN Password')}
{$i18n.t('Attribute for Username')}
{$i18n.t('Search Base')}
{$i18n.t('Search Filters')}
{$i18n.t('TLS')}
{#if LDAP_SERVER.use_tls}
{$i18n.t('Certificate Path')}
{$i18n.t('Ciphers')}
{/if}
{/if}

{$i18n.t('Manage Models')}
{$i18n.t('Default Model')}
{$i18n.t('Model Whitelisting')}
{#if whitelistEnabled}
{#each whitelistModels as modelId, modelIdx}
{#if modelIdx === 0} {:else} {/if}
{/each}
{whitelistModels.length} {$i18n.t('Model(s) Whitelisted')}
{/if}