server: remove trailing space

This commit is contained in:
ngxson 2024-02-20 00:15:50 +01:00
parent 2c225c9598
commit b19f46a27e

View file

@ -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);