The following projects are not maintained by OpenAI. I cannot vouch that any of them are correct or safe to use. Use at your own risk.
Note that if a tokeniser fails to exactly match tiktoken's behaviour, you may get worse results when sampling from models, with no warning.
Javascript
Rust
Java
Ruby
C#
Go
PHP
Kotlin
Thanks to everyone for building useful things!
I'm happy to link to other projects in this comment.
The following projects are not maintained by OpenAI. I cannot vouch that any of them are correct or safe to use. Use at your own risk.
Note that if a tokeniser fails to exactly match tiktoken's behaviour, you may get worse results when sampling from models, with no warning.
Javascript
Rust
Java
Ruby
C#
Go
PHP
Kotlin
Thanks to everyone for building useful things!
I'm happy to link to other projects in this comment.