From eb75395b5c99256951e82e067a8087bbc19620a0 Mon Sep 17 00:00:00 2001 From: FSSRepo Date: Thu, 5 Oct 2023 15:18:47 -0400 Subject: [PATCH] remove trail whitespace --- examples/server-parallel/server.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/server-parallel/server.cpp b/examples/server-parallel/server.cpp index 6bd6dadc9..2b12fc100 100644 --- a/examples/server-parallel/server.cpp +++ b/examples/server-parallel/server.cpp @@ -205,7 +205,7 @@ struct server_parallel_context { { llama_kv_cache_seq_cp(ctx, 0, i, 0, n_tokens_system); } - + LOG_TEE("system prompt updated\n"); update_system_prompt = false; } @@ -801,7 +801,7 @@ int main(int argc, char **argv) svr.Get("/", [&](const Request & /*req*/, Response &res) { res.set_content(index_html_, "text/html"); }); - + svr.Get("/index.js", [&](const Request & /*req*/, Response &res) { res.set_content(index_js_, "text/html"); }); @@ -812,6 +812,7 @@ int main(int argc, char **argv) { "assistant_name", llama.assistant_name.c_str() } }; res.set_content(data.dump(), "application/json"); }); + svr.Post("/completion", [&llama](const Request &req, Response &res) { llama_client_slot* slot = llama.requestCompletion(json::parse(req.body));