Browse Source

Merge pull request #759 from ollama-webui/keep-alive-fix

fix: keep alive
Timothy Jaeryang Baek 1 năm trước cách đây
mục cha
commit
402dc3b9c2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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');