Expand description
This module encapsulates the logic for counting the tokens in the rendered text.
Enums§
- Token
Format - Tokenizer
Type - Tokenizer types supported by tiktoken.
Functions§
- count_
tokens - Counts the tokens in the provided text using the specified tokenizer type.