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

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