Interface CompletionSSEChoice

CompletionSSEChoice represents an object that contains a streaming result choice.

interface CompletionSSEChoice {
    finish_reason: null | string;
    index: number;
    stop_reason: null | string;
    text: string;
}

Properties

finish_reason: null | string

finish_reason represents the reason the response has finished.

index: number

index represents the index position in the collection for this choice.

stop_reason: null | string

stop_reason represents the stop reason for this choice.

text: string

text represents the partial generated text for this choice.