# ChatGptOptionsBuilder.MessageLimit property

Gets or sets the maximum number of messages to use for chat completion (default: 10).

```csharp
public int MessageLimit { get; set; }
```

## See Also

* class [ChatGptOptionsBuilder](../ChatGptOptionsBuilder.md)
* namespace [ChatGptNet](../../ChatGptNet.md)

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