CompletionsOptions.GenerationSampleCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that controls how many completions will be internally generated prior to response formulation.
public int? GenerationSampleCount { get; set; }
member this.GenerationSampleCount : Nullable<int> with get, set
Public Property GenerationSampleCount As Nullable(Of Integer)
Property Value
Remarks
When used together with ChoicesPerPrompt, GenerationSampleCount controls the number of candidate completions and must be greater than ChoicesPerPrompt.
Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure reasonable settings for MaxTokens and StopSequences.
GenerationSampleCount is equivalent to 'best_of' in the REST request schema.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for