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)
node-llama-cpp
Run AI models locally on your machine with node.js bindings for llama.cpp. Enforce a JSON schema on the model output on the generation level
chatgpt
Node.js client for the official ChatGPT API.
gpt-tokens
Calculate the token consumption and amount of openai gpt message
hercai
A powerful library for interacting with the Herc.ai API