Partager via


OpenAIAssistantDefinition.TopP Property

Definition

An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.

[System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]
public float? TopP { get; init; }
[<System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)>]
member this.TopP : Nullable<single> with get, set
Public Property TopP As Nullable(Of Single)

Property Value

Attributes

Remarks

Recommended to set this or temperature but not both.

Applies to