Langfuse JS/TS SDKs
    Preparing search index...

    Interface OpenAiCompletionUsageSchema

    OpenAI Usage schema from (Chat-)Completion APIs

    interface OpenAiCompletionUsageSchema {
        completion_tokens: number;
        completion_tokens_details?: Record<string, undefined | number>;
        prompt_tokens: number;
        prompt_tokens_details?: Record<string, undefined | number>;
        total_tokens: number;
    }
    Index

    Properties

    completion_tokens: number
    completion_tokens_details?: Record<string, undefined | number>
    prompt_tokens: number
    prompt_tokens_details?: Record<string, undefined | number>
    total_tokens: number