server : minor code style

This commit is contained in:
Georgi Gerganov 2023-11-24 11:33:49 +02:00
parent c544faed74
commit b3e88bf494
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -2288,9 +2288,7 @@ json oaicompat_completion_params_parse(
} else if (body["stop"].is_string()) {
llama_params["stop"] = json::array({body["stop"].get<std::string>()});
} else {
llama_params["stop"] = json_value(
body, "stop",
json::array());
llama_params["stop"] = json_value(body, "stop", json::array());
}
// Ensure there is ChatML-specific end sequence among stop words