Categories: None [Edit]

rz_tiktoken_ruby

https://rubygems.org/gems/rz_tiktoken_ruby
https://github.com/retailzipline/tiktoken_ruby
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.

Total

Ranking: 92,875 of 197,776
Downloads: 9,848

Daily

Ranking: 33,644 of 197,744
Downloads: 3

Depended by

RankDownloadsName

Depends on

RankDownloadsName
1,30037,407,369rb_sys

Owners

#GravatarHandle
1iconjudy