openai-tokens
A service for calculating, managing, truncating openai prompt tokens
openai-gpt-token-counter
Count the number of OpenAI tokens in a string. Supports all OpenAI Text models (text-davinci-003, gpt-3.5-turbo, gpt-4)
gpt-tokens
Calculate the token consumption and amount of openai gpt message
gpti
This package simplifies your interaction with various GPT models, removing the need for tokens or other methods to access GPT
llmtrim
A library for trimming tokens in encoding and decoding in LLM applications.