# ChatGptParameters.PresencePenalty property

Gets or sets the presence penalties for chat completion. Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics (default: 0).

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

## Remarks

See [Parameter details](https://platform.openai.com/docs/api-reference/parameter-details) for more information.

## See Also

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

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