implementation("com.aallam.ktoken:ktoken:0.4.0")
Ktoken: a BPE tokenizer for OpenAI's models, implemented in Kotlin.