fix: keep alive

This commit is contained in:
Timothy J. Baek 2024-02-16 12:59:10 -08:00
parent 9b3596001e
commit 94b0daf6fe

View file

@ -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');