mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-01 00:39:00 +01:00
server : minor code style
This commit is contained in:
parent
c544faed74
commit
b3e88bf494
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user