RubyGems Navigation menu

tiktoken_ruby 0.0.4

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.

Gemfile:
=

install:
=

Versions:

  1. 0.0.16 May 02, 2026 x86_64-linux (16.4 MB)
  2. 0.0.16 May 02, 2026 x86_64-linux-musl (16.4 MB)
  3. 0.0.16 May 02, 2026 x86_64-darwin (16 MB)
  4. 0.0.16 May 02, 2026 x64-mingw-ucrt (18.6 MB)
  5. 0.0.16 May 02, 2026 arm64-darwin (16 MB)
  6. 0.0.4 March 28, 2023 (14.5 KB)
Show all versions (148 total)

Owners:

Pushed by:

Authors:

  • IAPark

SHA 256 checksum:

=

Total downloads 6,515,079

For this version 1,092

Version Released:

License:

MIT

Required Ruby Version: >= 2.7.0

Required Rubygems Version: >= 3.1.0

Links: