Class Choice

Choice class

Represents a choice in a chat completion response.

public class Choice

Constructors

NameDescription
Choice()The default constructor.

Properties

NameDescription
FinishReason { get; set; }Gets or sets the reason the model stopped generating tokens. This will be stop if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached.
Index { get; set; }Gets or sets the index of the choice in the list of choices.
Logprobs { get; set; }Gets or sets log probability information for the choice.
Message { get; set; }Gets or sets a chat completion message generated by the model.

Methods

NameDescription
override ToString()Returns the content of the choice as a string.

See Also