Skip to main content
All docs
V25.1
  • DxAIChat.UseStreaming Property

    Specifies whether a response should be sent as a stream.

    Namespace: DevExpress.AIIntegration.Blazor.Chat

    Assembly: DevExpress.AIIntegration.Blazor.Chat.v25.1.dll

    NuGet Package: DevExpress.AIIntegration.Blazor.Chat

    Declaration

    [Parameter]
    public bool UseStreaming { get; set; }

    Property Value

    Type Description
    Boolean

    true to stream the response; false to generate the entire response before sending it back.

    Remarks

    After a user sends a request, the AI client generates and sends the entire response back. This operation may take a while, depending on various factors. You can make the chat appear more responsive if you set the UseStreaming property to true. In this case, the AI client transmits parts of the response as they become available and the chat component adds those parts to the display message.

    <DxAIChat UseStreaming="true" />
    

    AI chat streams a response

    Run Demo: AI Chat - Overview
    View Example: AI Chat for Blazor - How to add DxAIChat component in Blazor, MAUI, WPF, and WinForms applications

    See Also