module Tiktoken

Defined in:

tiktoken.cr
tiktoken/encoding.cr
tiktoken/libtiktoken.cr
tiktoken/version.cr

Constant Summary

VERSION = {{ (`shards version /home/runner/work/tiktoken-cr/tiktoken-cr/src/tiktoken`).chomp.stringify }}

Class Method Summary

Class Method Detail

def self.chat_completion_max_tokens(model, messages) #

[View source]
def self.encoding_for_model(model_name) #

[View source]
def self.get_encoding(encoding_name) #

[View source]
def self.num_tokens_from_messages(model, messages) #

[View source]
def self.tiktoken_c_version : String #

[View source]