{ updateInterfaceHandler(); dispatch('save'); }} >
{$i18n.t('WebUI Add-ons')}
{$i18n.t('Title Auto-Generation')}
{ toggleTitleAutoGenerate(); }} type="button" > {#if titleAutoGenerate === true}
{$i18n.t('On')}
{:else}
{$i18n.t('Off')}
{/if}
{$i18n.t('Response AutoCopy to Clipboard')}
{ toggleResponseAutoCopy(); }} type="button" > {#if responseAutoCopy === true}
{$i18n.t('On')}
{:else}
{$i18n.t('Off')}
{/if}
{$i18n.t('Full Screen Mode')}
{ toggleFullScreenMode(); }} type="button" > {#if fullScreenMode === true}
{$i18n.t('On')}
{:else}
{$i18n.t('Off')}
{/if}
{$i18n.t('Display the username instead of You in the Chat')}
{ toggleShowUsername(); }} type="button" > {#if showUsername === true}
{$i18n.t('On')}
{:else}
{$i18n.t('Off')}
{/if}
{$i18n.t('Set Title Auto-Generation Model')}
Local Models
{$i18n.t('Current Model')}
{#each $models as model} {#if model.size != null}
{model.name + ' (' + (model.size / 1024 ** 3).toFixed(1) + ' GB)'}
{/if} {/each}
External Models
{$i18n.t('Current Model')}
{#each $models as model} {#if model.name !== 'hr'}
{model.name}
{/if} {/each}
{$i18n.t('Title Generation Prompt')}
{#if $user.role === 'admin'}
{$i18n.t('Default Prompt Suggestions')}
{ if (promptSuggestions.length === 0 || promptSuggestions.at(-1).content !== '') { promptSuggestions = [...promptSuggestions, { content: '', title: ['', ''] }]; } }} >
{#each promptSuggestions as prompt, promptIdx}
{ promptSuggestions.splice(promptIdx, 1); promptSuggestions = promptSuggestions; }} >
{/each}
{#if promptSuggestions.length > 0}
{$i18n.t('Adjusting these settings will apply changes universally to all users.')}
{/if}
{/if}
{$i18n.t('Save')}