Skip to content

Configuration

Host wiring

The RCL has no appsettings.json; configuration happens in the host. The sample (samples/AIChatDemo.BlazorServer/Program.cs) shows the pattern:

builder.Services.AddAIChatServices();

app.MapRazorComponents<App>()
   .AddInteractiveServerRenderMode()
   .AddAdditionalAssemblies(
       typeof(ConnectSoft.Blazor.Mfe.AIChatTemplate.Pages.Home).Assembly);

AI backend

Out of the box, IMockAIService -> MockAIService serves streaming responses locally. To use a real model, replace the mock registration with your own IChatClient/service implementation and adjust ChatOrchestrator wiring.

Styling

The README references an optional ChatSettings section for theme defaults; it is not present in the RCL source. Theme/adapter selection is otherwise driven by UIKit and the --uikit-adapter chosen at scaffold time. Ensure UIKit CSS and Flowbite JS load in the host's root component.

See also