{$i18n.t('Parameters')}
{$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}
{ 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 ? (isNaN(keepAlive) ? keepAlive : parseInt(keepAlive)) : undefined }); dispatch('save'); }} > {$i18n.t('Save')}