Skip to content

Commit

Permalink
Rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
yatarkan committed Jul 23, 2024
1 parent 4c101ee commit b9a4f20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/src/tokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b9a4f20

Please sign in to comment.