tiktoken-rs
Ready-made tokenizer library for working with GPT and tiktoken
cargo
sh
cargo add tiktoken-rs
See the examples in the repo for other use-cases.
If you encounter any bugs or have any suggestions for improvements, please open an issue on the repository.
This project is licensed under the MIT License.