From 3ef3cf8c3d9905bc4a48b83640cc49d8429a6a0b Mon Sep 17 00:00:00 2001 From: slaren Date: Wed, 30 Aug 2023 15:52:53 +0200 Subject: [PATCH] llama_token_to_str -> llama_token_to_piece --- examples/llama2-chat/llama2-chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/llama2-chat/llama2-chat.cpp b/examples/llama2-chat/llama2-chat.cpp index 93c991b3a..7aab1b72c 100644 --- a/examples/llama2-chat/llama2-chat.cpp +++ b/examples/llama2-chat/llama2-chat.cpp @@ -108,7 +108,7 @@ struct chat { break; } - printf("%s", llama_token_to_str(ctx, id).c_str()); + printf("%s", llama_token_to_piece(ctx, id).c_str()); fflush(stdout); } while (true); }