Skip to content

Commit

Permalink
keep to test tiktoken.h 181 line
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonwin committed Apr 11, 2024
1 parent 36d2b98 commit 7d195e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tiktoken.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ class tiktoken {

if (allowed_special.count(special) == 1) {
// return { std::move(special), re2::StringPiece(start, input.begin() - start - special.size()) };
return { std::move(special), re2::StringPiece(start, input.begin() - start - special.size()) };
return { std::move(special), re2::StringPiece(input.data(), input.begin() - start - special.size()) };

}
}

Expand Down

0 comments on commit 7d195e0

Please sign in to comment.