Commit 0d6440f5 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: num_predict default value should match ollama default

https://github.com/jmorganca/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values
parent 7753851e
......@@ -516,7 +516,7 @@
class="p-1 px-3 text-xs flex rounded transition"
type="button"
on:click={() => {
options.num_predict = options.num_predict === '' ? 256 : '';
options.num_predict = options.num_predict === '' ? 128 : '';
}}
>
{#if options.num_predict === ''}
......@@ -533,7 +533,7 @@
<input
id="steps-range"
type="range"
min="1"
min="-2"
max="16000"
step="1"
bind:value={options.num_predict}
......@@ -545,7 +545,7 @@
bind:value={options.num_predict}
type="number"
class=" bg-transparent text-center w-14"
min="1"
min="-2"
max="16000"
step="1"
/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment