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

fix: keep alive
This commit is contained in:
Timothy Jaeryang Baek 2024-02-16 15:59:41 -05:00 committed by GitHub
commit 402dc3b9c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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