# ChatGptParameters.TopP property

Gets or sets an alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with `TopP` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered (default: 1).

```csharp
public double? TopP { get; set; }
```

## Remarks

It is generally recommend altering this value or [`Temperature`](./Temperature.md) but not both.

## See Also

* property [Temperature](./Temperature.md)
* class [ChatGptParameters](../ChatGptParameters.md)
* namespace [ChatGptNet.Models](../../ChatGptNet.md)

<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll -->
