From 94b0daf6fe4076002c52cfda7bfd10e3c0b839bf Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 16 Feb 2024 12:59:10 -0800 Subject: [PATCH] fix: keep alive --- src/lib/components/chat/Settings/Advanced.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Settings/Advanced.svelte b/src/lib/components/chat/Settings/Advanced.svelte index 48c12269..18b5c132 100644 --- a/src/lib/components/chat/Settings/Advanced.svelte +++ b/src/lib/components/chat/Settings/Advanced.svelte @@ -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 ? (isNaN(keepAlive) ? keepAlive : parseInt(keepAlive)) : undefined }); dispatch('save');