DxAIChat.MaxTokens Property
OBSOLETE
This property has been removed to avoid conflicts and improve model compatibility. Set max tokens globally in IChatResponseProvider options or per-message in the MessageSending event handler.
Limits the maximum number of tokens to generate in a single call to a GPT model.
Namespace: DevExpress.AIIntegration.Blazor.Chat
Assembly: DevExpress.AIIntegration.Blazor.Chat.v26.1.dll
Declaration
[Obsolete("This property has been removed to avoid conflicts and improve model compatibility. Set max tokens globally in IChatResponseProvider options or per-message in the MessageSending event handler.", true)]
[Parameter]
public int? MaxTokens { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable<Int32> | The maximum number of tokens. |
Remarks
Language models process text by dividing it into tokens, which can be words or groups of characters. Use the MaxTokens property to limit the maximum number of tokens generated in a single call to a GPT model.
<DxAIChat MaxTokens="70" />
See Also