Interface for tracking token usage in OpenAI calls.

interface TokenUsage {
    completionTokens?: number;
    promptTokens?: number;
    totalTokens?: number;
}

Properties

completionTokens?: number
promptTokens?: number
totalTokens?: number