Ver Fonte

fix: keep alive

Timothy J. Baek há 1 ano atrás
pai
commit
94b0daf6fe
1 ficheiros alterados com 1 adições e 1 exclusões
  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_ctx: options.num_ctx !== '' ? options.num_ctx : undefined,
 						num_predict: options.num_predict !== '' ? options.num_predict : undefined
 						num_predict: options.num_predict !== '' ? options.num_predict : undefined
 					},
 					},
-					keepAlive: keepAlive ? keepAlive : undefined
+					keepAlive: keepAlive ? (isNaN(keepAlive) ? keepAlive : parseInt(keepAlive)) : undefined
 				});
 				});
 
 
 				dispatch('save');
 				dispatch('save');