From b19f46a27e90fc43594cd2d826d717f65572c2f5 Mon Sep 17 00:00:00 2001 From: ngxson Date: Tue, 20 Feb 2024 00:15:50 +0100 Subject: [PATCH] server: remove trailing space --- examples/server/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp index a63083cbb..23f54a59b 100644 --- a/examples/server/utils.hpp +++ b/examples/server/utils.hpp @@ -197,7 +197,7 @@ inline std::string format_chat(const struct llama_model * model, const std::stri // run the first time to get the total output length int32_t res = llama_chat_apply_template(model, ptr_tmpl, chat.data(), chat.size(), true, buf.data(), buf.size()); - + // if it turns out that our buffer is too small, we resize it if ((size_t) res > buf.size()) { buf.resize(res);