From 8d7b28c28d07c3e9739f574c96843e1e0cff220f Mon Sep 17 00:00:00 2001 From: Randall Fitzgerald Date: Tue, 23 May 2023 13:35:12 -0700 Subject: [PATCH] Fixed some types in the params. Quickly copy pasted without fixing them up. Whoopsies. --- examples/server/server.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index f8586628a..6cc07a955 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -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(); + llama.params.repeat_last_n = body["repeat_last_n"].get(); } 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(); + llama.params.mirostat = body["mirostat"].get(); } 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(); + llama.params.penalize_nl = body["penalize_nl"].get(); } if (!body["batch_size"].is_null()) {