server : minor code style
This commit is contained in:
parent
c544faed74
commit
b3e88bf494
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue