From 42b24cbb684a38c8f8f1da64132eaf06e8eb18b3 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 13 Feb 2024 01:50:46 -0800 Subject: [PATCH] fix: keep alive default value --- src/lib/components/chat/Settings/Advanced.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Settings/Advanced.svelte b/src/lib/components/chat/Settings/Advanced.svelte index baa3165a..48c12269 100644 --- a/src/lib/components/chat/Settings/Advanced.svelte +++ b/src/lib/components/chat/Settings/Advanced.svelte @@ -40,7 +40,7 @@ let settings = JSON.parse(localStorage.getItem('settings') ?? '{}'); requestFormat = settings.requestFormat ?? ''; - keepAlive = settings.keepAlive ?? ''; + keepAlive = settings.keepAlive ?? null; options.seed = settings.seed ?? 0; options.temperature = settings.temperature ?? ''; @@ -141,7 +141,7 @@ num_ctx: options.num_ctx !== '' ? options.num_ctx : undefined, num_predict: options.num_predict !== '' ? options.num_predict : undefined }, - keepAlive: keepAlive !== '' ? keepAlive : undefined + keepAlive: keepAlive ? keepAlive : undefined }); dispatch('save');