Parameters
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}
{ saveSettings({ 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 ? keepAlive : undefined }); dispatch('save'); }} > Save