From b9a4f2017d55f6a59da5071409f2210eb982b908 Mon Sep 17 00:00:00 2001 From: yatarkan Date: Tue, 23 Jul 2024 22:19:45 +0400 Subject: [PATCH] Rename var --- src/cpp/src/tokenizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/src/tokenizer.cpp b/src/cpp/src/tokenizer.cpp index bd8206781f..cd8d795113 100644 --- a/src/cpp/src/tokenizer.cpp +++ b/src/cpp/src/tokenizer.cpp @@ -353,7 +353,7 @@ class Tokenizer::TokenizerImpl { if (slice_pos != std::string::npos) { chat_tpl.replace(slice_pos, slice_string.length(), replacement_slice_string); } - jinja2::UserCallable sliceCallable = jinja2::MakeCallable( + jinja2::UserCallable slice_callable = jinja2::MakeCallable( [](const jinja2::ValuesList& list, const int64_t start) { if (list.empty()) return jinja2::Value(); @@ -389,7 +389,7 @@ class Tokenizer::TokenizerImpl { {"eos_token", m_eos_token}, {"pad_token", m_pad_token}, {"add_generation_prompt", add_generation_prompt}, - {"slice", sliceCallable}, + {"slice", slice_callable}, }; try {