From 8f83ca592d400b5ab100d30009b376b4a28b10b9 Mon Sep 17 00:00:00 2001 From: John <78893154+cmp-nct@users.noreply.github.com> Date: Sun, 19 Nov 2023 04:54:58 +0100 Subject: [PATCH] Update llama.cpp trailing ws --- llama.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index 1c5dd66e1..83cb95e81 100644 --- a/llama.cpp +++ b/llama.cpp @@ -9339,7 +9339,8 @@ static std::string llama_decode_text(const std::string & text) { // does not write null-terminator to buf int llama_token_to_piece(const struct llama_model * model, llama_token token, char * buf, int length) { return llama_token_to_piece(model, token, buf, length, false); -} +} + // does not write null-terminator to buf int llama_token_to_piece(const struct llama_model * model, llama_token token, char * buf, int length, bool print_all_types = false) { if (0 <= token && token < llama_n_vocab(model)) {