{ // console.log('submit'); await setDefaultModels(localStorage.token, defaultModelId); await updateUserPermissions(localStorage.token, permissions); await updateModelFilterConfig(localStorage.token, whitelistEnabled, whitelistModels); 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('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}