Member Junction
    Preparing search index...

    Type Alias ChatResultData

    A response returned from a chat model for a given chat completion request.

    type ChatResultData = {
        choices: ChatResultChoice[];
        model?: string;
        usage?: ModelUsage;
    }
    Index

    Properties

    Properties

    choices: ChatResultChoice[]

    A list of chat completion choices. Can be more than one if n is greater than 1.

    model?: string

    The API name of the model used to generate the response. Some AI providers may return this as undefined.

    usage?: ModelUsage

    The number of tokens used in the request and response. Some AI providers may return this as undefined.