# ChatGptParameters.FrequencyPenalty property

Gets or sets the frequency penalties for chat completion. Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim (default: 0).

```csharp
public double? FrequencyPenalty { 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 -->
