We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd60d82 commit 47cc7a7Copy full SHA for 47cc7a7
examples/server/utils.hpp
@@ -371,6 +371,7 @@ static json oaicompat_completion_params_parse(
371
llama_params["repeat_last_n"] = json_value(body, "repeat_last_n", default_sparams.penalty_last_n);
372
llama_params["ignore_eos"] = json_value(body, "ignore_eos", false);
373
llama_params["tfs_z"] = json_value(body, "tfs_z", default_sparams.tfs_z);
374
+ llama_params["n_keep"] = json_value(body, "n_keep", 0);
375
376
if (body.count("grammar") != 0) {
377
llama_params["grammar"] = json_value(body, "grammar", json::object());
0 commit comments