From 7a8104fbd26326f4d4c618a027942e62efc8f1bb Mon Sep 17 00:00:00 2001 From: anon Date: Tue, 30 May 2023 23:11:32 -0300 Subject: [PATCH] add missing quote when printing stopping strings --- examples/server/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 3d9cd5ca1..8d07f39d7 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -668,7 +668,7 @@ bool parse_options_completion(json body, llama_server_context& llama, Response & std::string tmp_stop = std::accumulate(llama.params.antiprompt.begin(), llama.params.antiprompt.end(), std::string{}, [](std::string a, std::string b) { - return a + (a != "" ? ", \"" : "") + b + "\""; + return a + (a != "" ? ", \"" : "\"") + b + "\""; }); fprintf(stderr,