Interface ChoiceModel

Describes a single choice in a streamed chat response.

Hierarchy

  • ChoiceModel

Properties

delta: {
    content?: string;
    role?: string;
}

The delta object containing role and content updates for the choice.

Type declaration

  • Optional content?: string

    The content of the message.

  • Optional role?: string

    The role of the message sender.

finishReason?: FinishReasonEnum

The reason why the response generation finished, if applicable.

index: number

The index of the choice in the response.