{$i18n.t('WebUI Settings')}
{$i18n.t('Theme')}
{#if theme === 'dark'}
{:else if theme === 'light'}
{/if}
{ localStorage.theme = theme; themes .filter((e) => e !== theme) .forEach((e) => { e.split(' ').forEach((e) => { document.documentElement.classList.remove(e); }); }); theme.split(' ').forEach((e) => { document.documentElement.classList.add(e); }); console.log(theme); }} >
{$i18n.t('Dark')}
{$i18n.t('Light')}
{$i18n.t('Rosé Pine')}
{$i18n.t('Rosé Pine Dawn')}
{$i18n.t('Language')}
{ console.log($i18n); $i18n.changeLanguage(lang); }} > {#each languages as value}
{value}
{/each}
{$i18n.t('Desktop Notifications')}
{ toggleNotification(); }} type="button" > {#if notificationEnabled === true}
{$i18n.t('On')}
{:else}
{$i18n.t('Off')}
{/if}
{$i18n.t('System Prompt')}
{$i18n.t('Advanced Parameters')}
{ showAdvanced = !showAdvanced; }}>{showAdvanced ? $i18n.t('Hide') : $i18n.t('Show')}
{#if showAdvanced}
{$i18n.t('Keep Alive')}
{ keepAlive = keepAlive === null ? '5m' : null; }} > {#if keepAlive === null}
{$i18n.t('Default')}
{:else}
{$i18n.t('Custom')}
{/if}
{#if keepAlive !== null}
{/if}
{$i18n.t('Request Mode')}
{ toggleRequestFormat(); }} > {#if requestFormat === ''}
{$i18n.t('Default')}
{:else if requestFormat === 'json'}
{$i18n.t('JSON')}
{/if}
{/if}
{ saveSettings({ system: system !== '' ? system : undefined, options: { seed: (options.seed !== 0 ? options.seed : undefined) ?? undefined, stop: options.stop !== '' ? options.stop.split(',').filter((e) => e) : undefined, temperature: options.temperature !== '' ? options.temperature : undefined, repeat_penalty: options.repeat_penalty !== '' ? options.repeat_penalty : undefined, repeat_last_n: options.repeat_last_n !== '' ? options.repeat_last_n : undefined, mirostat: options.mirostat !== '' ? options.mirostat : undefined, mirostat_eta: options.mirostat_eta !== '' ? options.mirostat_eta : undefined, mirostat_tau: options.mirostat_tau !== '' ? options.mirostat_tau : undefined, top_k: options.top_k !== '' ? options.top_k : undefined, top_p: options.top_p !== '' ? options.top_p : undefined, tfs_z: options.tfs_z !== '' ? options.tfs_z : undefined, num_ctx: options.num_ctx !== '' ? options.num_ctx : undefined, num_predict: options.num_predict !== '' ? options.num_predict : undefined }, keepAlive: keepAlive ? (isNaN(keepAlive) ? keepAlive : parseInt(keepAlive)) : undefined }); dispatch('save'); }} > Save