Start a conversation by typing a message or selecting a suggestion below.
Bold text
Italic text
inline code
code block
```
--------------------------------
### Streaming Chat Component Usage (Razor)
Source: https://github.com/devexpress-examples/devexpress-ai-chat-samples/blob/26.1.3+/_autodocs/COMPLETION_SUMMARY.txt
Example of using the DxAIChat component with streaming responses enabled in a Razor file.
```razor
@page "/chat-streaming"
@inject IAIChatService AIChatService
Bold
" var html = (MarkupString)markdown; // Cast to MarkupString for safe rendering ``` -------------------------------- ### InitializeBlazorAIChat Method Signature Source: https://github.com/devexpress-examples/devexpress-ai-chat-samples/blob/26.1.3+/_autodocs/05-winforms-ai-chat.md Signature for the method responsible for creating and configuring the AIChatControl. ```csharp void InitializeBlazorAIChat() ``` -------------------------------- ### Configure Core HTTP Middleware Source: https://github.com/devexpress-examples/devexpress-ai-chat-samples/blob/26.1.3+/_autodocs/04-blazor-program-setup.md Sets up essential HTTP middleware for a Blazor application, including HTTPS redirection, static file serving, and antiforgery token validation. ```csharp app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseAntiforgery(); ``` -------------------------------- ### Add Document-Based Q&A to Blazor Source: https://github.com/devexpress-examples/devexpress-ai-chat-samples/blob/26.1.3+/_autodocs/00-index.md Set up an AI assistant with a document and thread for Q&A functionality. ```razor @implements IAsyncDisposable @inject AIAssistantManager assistantManager