ChatOptions.TopP Property

Definition

Gets or sets the "nucleus sampling" factor (or "top p") for generating chat responses.

C#
public float? TopP { get; set; }

Property Value

Remarks

Nucleus sampling is an alternative to sampling with temperature where the model considers the results of the tokens with TopP probability mass. For example, 0.1 means only the tokens comprising the top 10% probability mass are considered.

Applies to

Produkt Wersje
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)