Member Junction
    Preparing search index...

    Type Alias ChatResultChoice

    A single choice in the chat completion result.

    type ChatResultChoice = {
        finish_reason: string;
        finishMessage?: string;
        index: number;
        logprobs?: ChatResultLogProbs | null;
        message: ChatCompletionMessage;
    }
    Index

    Properties

    finish_reason: string
    finishMessage?: string

    The provider's own explanation of why the turn ended, when it gives one — for a malformed or unexpected tool call, Gemini's description of the call it could not accept. Lets the caller show the model what it sent.

    index: number
    logprobs?: ChatResultLogProbs | null