Skip to content

Commit 18f257b

Browse files
author
ochafik
committed
Fix deprecation
1 parent 7c84ebc commit 18f257b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,8 +1825,8 @@ std::string common_chat_format_example(const struct llama_model * model,
18251825
llama_chat_templates llama_chat_templates_from_model(const struct llama_model * model, const std::string & chat_template_override)
18261826
{
18271827
auto vocab = llama_model_get_vocab(model);
1828-
auto bos_token = common_token_to_piece(vocab, llama_token_bos(vocab), true);
1829-
auto eos_token = common_token_to_piece(vocab, llama_token_eos(vocab), true);
1828+
auto bos_token = common_token_to_piece(vocab, llama_vocab_bos(vocab), true);
1829+
auto eos_token = common_token_to_piece(vocab, llama_vocab_eos(vocab), true);
18301830
std::string default_template_src = chat_template_override;
18311831
std::string tool_use_template_src = chat_template_override;
18321832
if (chat_template_override.empty()) {

0 commit comments

Comments
 (0)