RubyGems Navigation menu

tiktoken_ruby 0.0.3

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:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.0.3 - March 21, 2023 x86_64-linux (11.8 MB)
  2. 0.0.3 - March 21, 2023 x86_64-linux-musl (11.8 MB)
  3. 0.0.3 - March 21, 2023 x86_64-darwin (8.36 MB)
  4. 0.0.3 - March 21, 2023 x64-mingw32 (7.45 MB)
  5. 0.0.3 - March 21, 2023 x64-mingw-ucrt (7.47 MB)
Show all versions (26 total)

Owners:

Pushed by:

Authors:

  • IAPark

SHA 256 checksum:

31f6ba85e0ba9f8ad4d6533060552ae4e1c1c4e1bc8184f78f3922294981d34c

Total downloads 3,285

For this version 140

License:

MIT

Required Ruby Version: >= 2.6.0

Required Rubygems Version: >= 3.1.0

Links: