Documentation
    Preparing search index...

    Interface OpenAiChatResponse

    API response structure from an OpenAI-compatible /chat/completions endpoint.

    interface OpenAiChatResponse {
        choices: OpenAiChatChoice[];
        created: number;
        id: string;
        model: string;
        object: string;
        usage?: {
            completion_tokens: number;
            prompt_tokens: number;
            total_tokens: number;
        };
    }
    Index

    Properties

    choices: OpenAiChatChoice[]
    created: number
    id: string
    model: string
    object: string
    usage?: {
        completion_tokens: number;
        prompt_tokens: number;
        total_tokens: number;
    }