{ // console.log('submit'); await updateUserPermissions(localStorage.token, permissions); saveHandler(); }} >
User Permissions
Allow Chat Deletion
{ permissions.chat.deletion = !permissions.chat.deletion; }} type="button" > {#if permissions.chat.deletion}
Allow
{:else}
Don't Allow
{/if}
Manage Models
Model Whitelisting
{ whitelistEnabled = !whitelistEnabled; }}>{whitelistEnabled ? 'On' : 'Off'}
{#if whitelistEnabled}
{whitelistModels.length} Model(s) Whitelisted
Select a model
{#each $models.filter((model) => model.id) as model}
{model.name}
{/each}
{ if (!whitelistModels.includes(selectedModelId)) { whitelistModels.push(selectedModelId); } }} >
{/if}
Save