Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonwin committed Apr 11, 2024
1 parent f525098 commit fa10012
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion third_party/abseil-cpp
Submodule abseil-cpp updated 365 files
9 changes: 2 additions & 7 deletions tiktoken.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,10 @@ class tiktoken {
break;
}

if (allowed_special.count(special) == 1) {
#if ! defined(_WIN32)
return { std::move(special), re2::StringPiece(start, input.begin() - start - special.size()) }; // failed on windows building
#else
return { std::move(special), re2::StringPiece(input.data(), input.begin() - start - special.size()) }; // TODO test msvc use
#endif
if (allowed_special.count(special) == 1) {
return { std::move(special), re2::StringPiece(&*start, input.begin() - start - special.size()) }; // failed on windows building
}
}

return { std::nullopt, input };
}

Expand Down

0 comments on commit fa10012

Please sign in to comment.