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: 103,508 of 192,454
Downloads: 7,872

Daily

Ranking: 13,137 of 192,434
Downloads: 22

Depended by

RankDownloadsName

Depends on

RankDownloadsName
1,34132,819,198rb_sys

Owners

#GravatarHandle
1iconjudy