WebUI Settings
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); }} >
Dark
Light
Rosé Pine
Rosé Pine Dawn
Notification
{ toggleNotification(); }} type="button" > {#if notificationEnabled === true}
On
{:else}
Off
{/if}
System Prompt
Advanced Parameters
{ showAdvanced = !showAdvanced; }}>{showAdvanced ? 'Hide' : 'Show'}
{#if showAdvanced}
Keep Alive
{ keepAlive = keepAlive === null ? '5m' : null; }} > {#if keepAlive === null}
Default
{:else}
Custom
{/if}
{#if keepAlive !== null}
{/if}
Request Mode
{ toggleRequestFormat(); }} > {#if requestFormat === ''}
Default
{:else if requestFormat === 'json'}
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