From 0d6440f5c0162684776e1d5b5975d08b513ed2fb Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 30 Dec 2023 20:16:05 -0800 Subject: [PATCH] fix: num_predict default value should match ollama default https://github.com/jmorganca/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values --- src/lib/components/chat/Settings/Advanced.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/Settings/Advanced.svelte b/src/lib/components/chat/Settings/Advanced.svelte index 41ad69f33..5c70dc56a 100644 --- a/src/lib/components/chat/Settings/Advanced.svelte +++ b/src/lib/components/chat/Settings/Advanced.svelte @@ -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 @@