Fixed some types in the params.

Quickly copy pasted without fixing them up. Whoopsies.
This commit is contained in:
Randall Fitzgerald 2023-05-23 13:35:12 -07:00 committed by GitHub
parent 3537ad1821
commit 8d7b28c28d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -549,7 +549,7 @@ bool parse_options_completion(json body, llama_server_context& llama, Response &
}
if (!body["repeat_last_n"].is_null())
{
llama.params.repeat_last_n = body["repeat_last_n"].get<float>();
llama.params.repeat_last_n = body["repeat_last_n"].get<int32_t>();
}
if (!body["temperature"].is_null())
{
@ -569,7 +569,7 @@ bool parse_options_completion(json body, llama_server_context& llama, Response &
}
if (!body["mirostat"].is_null())
{
llama.params.mirostat = body["mirostat"].get<float>();
llama.params.mirostat = body["mirostat"].get<int>();
}
if (!body["mirostat_tau"].is_null())
{
@ -581,7 +581,7 @@ bool parse_options_completion(json body, llama_server_context& llama, Response &
}
if (!body["penalize_nl"].is_null())
{
llama.params.penalize_nl = body["penalize_nl"].get<float>();
llama.params.penalize_nl = body["penalize_nl"].get<bool>();
}
if (!body["batch_size"].is_null())
{