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,813 of 198,225
Downloads: 9,892

Daily

Ranking: 34,963 of 198,184
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
1,29237,752,674rb_sys

Owners

#GravatarHandle
1iconjudy