mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-04 01:57:53 +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()) {
|
} else if (body["stop"].is_string()) {
|
||||||
llama_params["stop"] = json::array({body["stop"].get<std::string>()});
|
llama_params["stop"] = json::array({body["stop"].get<std::string>()});
|
||||||
} else {
|
} else {
|
||||||
llama_params["stop"] = json_value(
|
llama_params["stop"] = json_value(body, "stop", json::array());
|
||||||
body, "stop",
|
|
||||||
json::array());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure there is ChatML-specific end sequence among stop words
|
// Ensure there is ChatML-specific end sequence among stop words
|
||||||
|
Loading…
Reference in New Issue
Block a user