Creating Plot Twists
    Preparing search index...

    Type Alias AIUsage

    Represents the number of tokens used in a prompt and completion.

    type AIUsage = {
        inputTokens?: number;
        outputTokens?: number;
        totalTokens?: number;
        reasoningTokens?: number;
    }
    Index

    Properties

    inputTokens?: number

    The number of tokens used in the prompt.

    outputTokens?: number

    The number of tokens used in the completion.

    totalTokens?: number

    The total number of tokens used (promptTokens + completionTokens).

    reasoningTokens?: number

    The number of reasoning tokens used in the completion.