The component requires the IAIChatService to be registered in your application, please use our demos source for reference. This service supports any OpenAI-compatible endpoint, including OpenAI, Azure OpenAI, Cloudflare AI, and other compatible providers. For WebAssembly applications, you'll need to use a server-side proxy endpoint since browsers cannot make direct requests to external APIs due to CORS restrictions, refer to AIChatController.
Console log
Customize the appearance of the AIChat component using Style
, ShowClearButton
, Disabled
, and ReadOnly
properties.
Create a more compact chat interface suitable for smaller spaces or sidebar implementations.
Handle chat events like MessageAdded
, MessageSent
, ResponseReceived
, and ChatCleared
to integrate with your application logic.
Console log
The AIChat component supports conversation memory that remembers previous questions and maintains context across multiple interactions.
Use SessionId
to maintain conversation state and SessionIdChanged
to track session changes.
Whether you prefer a standalone environment or integration directly within Visual Studio, Radzen provides a powerful toolkit to increase development speed, reduce repetitive coding, and focus on building exceptional applications.
Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles.
Radzen Blazor for Visual Studio extension streamlines Blazor development within the Visual Studio environment. The Blazor extension you need to boost productivity!
Radzen Blazor Components, © 2018-2025 Radzen.
Source Code licensed under
MIT