# ChatGptParameters.Temperature property

Gets or sets what sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic (default: 1).

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

## Remarks

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

## See Also

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

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