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 ece5134 commit bfaad89Copy full SHA for bfaad89
examples/server/server.cpp
@@ -2414,7 +2414,7 @@ json oaicompat_completion_params_parse(
2414
llama_params["ignore_eos"] = json_value(body, "ignore_eos", false);
2415
llama_params["tfs_z"] = json_value(body, "tfs_z", 0.0);
2416
2417
- if (llama_params.count("grammar") != 0) {
+ if (body.count("grammar") != 0) {
2418
llama_params["grammar"] = json_value(body, "grammar", json::object());
2419
}
2420
0 commit comments