An unofficial Ruby wrapper for Tiktoken, a BPE tokenizer written by and used by OpenAI. It can be used to count the number of tokens in text before sending it to OpenAI APIs. This is a fork of tiktoken_ruby by IAPark, which has been cross-compiled for multiple platforms. This way compilation with Rust extensions doesn't need to happen wherever you are deploying it.
Required Ruby Version
>= 2.7.0
Required Rubygems Version
>= 3.1.0
Authors
IAPark, judy
Versions
- 0.0.6 August 24, 2023 (13.5 KB)
- 0.0.6 August 24, 2023 x86_64-darwin (6.77 MB)
- 0.0.6 August 24, 2023 x86_64-linux-musl (9.48 MB)
- 0.0.6 August 24, 2023 aarch64-linux (9.42 MB)
- 0.0.6 August 24, 2023 arm-linux (9.39 MB)