فهرست منبع

fix: keep alive

Timothy J. Baek 1 سال پیش
والد
کامیت
94b0daf6fe
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/lib/components/chat/Settings/Advanced.svelte

+ 1 - 1
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');