{$i18n.t('Model Permissions')}
{$i18n.t('Model Filtering')}
{#if filterEnabled}
{$i18n.t('Model IDs')}
{#if filterModelIds.length > 0}
{#each filterModelIds as modelId, modelIdx}
{modelId}
{ filterModelIds = filterModelIds.filter((_, idx) => idx !== modelIdx); }} >
{/each}
{:else}
{$i18n.t('No model IDs')}
{/if}
{$i18n.t('Select a model')}
{#each $models.filter((m) => m?.owned_by !== 'arena') as model}
{model.name}
{/each}
{ if (selectedModelId && !filterModelIds.includes(selectedModelId)) { filterModelIds = [...filterModelIds, selectedModelId]; selectedModelId = ''; } }} >
{/if}
{$i18n.t('Default Model')}
{$i18n.t('Select a model')}
{#each filterEnabled ? $models.filter( (model) => filterModelIds.includes(model.id) ) : $models.filter((model) => model.id) as model}
{model.name}
{/each}
{$i18n.t('Workspace Permissions')}
{$i18n.t('Allow Models Access')}
{$i18n.t('Allow Knowledge Access')}
{$i18n.t('Allow Prompts Access')}
{$i18n.t('Chat Permissions')}
{$i18n.t('Allow Chat Deletion')}
{$i18n.t('Allow Chat Editing')}
{$i18n.t('Allow Temporary Chat')}