Interface for tracking token usage in OpenAI calls.

Hierarchy

  • TokenUsage

Properties

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

Generated using TypeDoc