Member Junction
    Preparing search index...

    Type Alias ChatCompletionMessage

    Defines the shape of an individual message from the model in response to a chat completion request.

    type ChatCompletionMessage = {
        content: string;
        role: "assistant";
        thinking?: string | null;
    }
    Index

    Properties

    content: string

    Content of the message, can be any string

    role: "assistant"

    Role of the message in the conversation. For completions, this is always 'assistant'.

    thinking?: string | null

    When using a reasoning model, this field can contain the reasoning behind the response. Not all providers/models support this field.