LLM Toolkit is a collection of llm providers and utilities.
npm install @pezzo/llm-toolkitimport { OpenAIToolkit } from "@pezzo/llm-toolkit";const { promptCostPer1000Tokens, completionCostPer1000Tokens } =
OpenAIToolkit.gptModels["gpt-3.5-turbo"];// the modelName parameter is fully typed, you'll be able to see a a list with the available models
const cost = OpenAIToolkit.calculateGptCost(
promptTokens,
completionTokens,
modelName
);Note: The model name is fully typed, you'll be able to see a list with the available models.
