add missing quote when printing stopping strings

This commit is contained in:
anon 2023-05-30 23:11:32 -03:00
parent b6f536dfb3
commit 7a8104fbd2

View file

@ -668,7 +668,7 @@ bool parse_options_completion(json body, llama_server_context& llama, Response &
std::string tmp_stop = std::string tmp_stop =
std::accumulate(llama.params.antiprompt.begin(), llama.params.antiprompt.end(), std::accumulate(llama.params.antiprompt.begin(), llama.params.antiprompt.end(),
std::string{}, [](std::string a, std::string b) { std::string{}, [](std::string a, std::string b) {
return a + (a != "" ? ", \"" : "") + b + "\""; return a + (a != "" ? ", \"" : "\"") + b + "\"";
}); });
fprintf(stderr, fprintf(stderr,