Back to Devexpress

DxAIChat.MaxTokens Property

blazor-devexpress-dot-aiintegration-dot-blazor-dot-chat-dot-dxaichat-90e69e9a.md

latest1.3 KB
Original Source

DxAIChat.MaxTokens Property

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.v25.2.dll

NuGet Package : DevExpress.AIIntegration.Blazor.Chat

Declaration

csharp
[Parameter]
public int? MaxTokens { get; set; }

Property Value

TypeDescription
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.

razor
<DxAIChat MaxTokens="70" />

See Also

DxAIChat Class

DxAIChat Members

DevExpress.AIIntegration.Blazor.Chat Namespace