Skip to content

Commit

Permalink
server: remove trailing space
Browse files Browse the repository at this point in the history
  • Loading branch information
ngxson committed Feb 19, 2024
1 parent 2c225c9 commit b19f46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b19f46a

Please sign in to comment.