Share via


CompletionsOptions.ChoicesPerPrompt 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? ChoicesPerPrompt { get; set; }
member this.ChoicesPerPrompt : Nullable<int> with get, set
Public Property ChoicesPerPrompt 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.

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

Applies to