Interface CompletionChoice

Choice represents an object that contains a result choice.

interface CompletionChoice {
    index: number;
    model: string;
    status: string;
    text: string;
}

Properties

Properties

index: number

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

model: string

model represents the model used for generating the result for this choice.

status: string

status represents if the response for this choice was successful or not.

text: string

text represents the generated text for this choice.