Skip to main content
All docs
V26.1
  • AIChatControl.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.

    Gets or sets the maximum number of tokens to generate in a single call to a GPT model.

    Namespace: DevExpress.AIIntegration.WinForms.Chat

    Assembly: DevExpress.AIIntegration.WinForms.Chat.v26.1.dll

    NuGet Package: DevExpress.AIIntegration.WinForms.Chat

    Declaration

    [Browsable(false)]
    [DefaultValue(null)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    [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)]
    public int? MaxTokens { get; set; }

    Property Value

    Type Default Description
    Nullable<Int32> null

    The maximum number of tokens.

    Remarks

    Language models process text as tokens — words or groups of characters. The MaxTokens property limited the maximum number of tokens a GPT model could generate in a single call.

    Note

    This property is removed to avoid conflicts and improve model compatibility. Specify the token limit globally in IChatResponseProvider options, or per message in the MessageSending event handler.

    See Also