From 890824ced4882922b117f4b22a780197881d482c Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 3 Sep 2024 15:43:26 +0200 Subject: [PATCH] fix: advanced params not being applied to ollama --- src/lib/components/chat/Chat.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 6a39534d4..133d9ab1e 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -863,7 +863,7 @@ model: model.id, messages: messagesBody, options: { - ...(params ?? $settings.params ?? {}), + ...{ ...($settings?.params ?? {}), ...params }, stop: (params?.stop ?? $settings?.params?.stop ?? undefined) ? (params?.stop.split(',').map((token) => token.trim()) ?? $settings.params.stop).map(