From 18f257bf1a1aabea100935151a9e7eb09ff80f93 Mon Sep 17 00:00:00 2001 From: ochafik Date: Mon, 13 Jan 2025 21:30:48 +0000 Subject: [PATCH] Fix deprecation --- common/common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index 275aa7385..763e931b1 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1825,8 +1825,8 @@ std::string common_chat_format_example(const struct llama_model * model, llama_chat_templates llama_chat_templates_from_model(const struct llama_model * model, const std::string & chat_template_override) { auto vocab = llama_model_get_vocab(model); - auto bos_token = common_token_to_piece(vocab, llama_token_bos(vocab), true); - auto eos_token = common_token_to_piece(vocab, llama_token_eos(vocab), true); + auto bos_token = common_token_to_piece(vocab, llama_vocab_bos(vocab), true); + auto eos_token = common_token_to_piece(vocab, llama_vocab_eos(vocab), true); std::string default_template_src = chat_template_override; std::string tool_use_template_src = chat_template_override; if (chat_template_override.empty()) {