Share via


ChatCompletionsOptions.ChoiceCount Property

Definition

Gets or sets the number of choices that should be generated per provided prompt. Has a valid range of 1 to 128.

public int? ChoiceCount { get; set; }
member this.ChoiceCount : Nullable<int> with get, set
Public Property ChoiceCount As Nullable(Of Integer)

Property Value

Remarks

Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure reasonable settings for MaxTokens and StopSequences.

ChoiceCount is equivalent to 'n' in the REST request schema.

Applies to