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: 93,018 of 196,643
Downloads: 9,671

Daily

Ranking: 23,434 of 196,611
Downloads: 6

Depended by

RankDownloadsName

Depends on

RankDownloadsName
1,31335,980,094rb_sys

Owners

#GravatarHandle
1iconjudy