AI Chat and service

Hi there,
in my application, I use AI as a database assistant that creates queries based on the database model. I wanted to use a new control, but a few questions arose.

  1. Can I modify the response on the fly? I'd like to display only the "summary" that comes with the response.


  1. Is it possible to change AI service parameters before send message? For example, Model or SystemPrompt? I don't see access to these properties in the IAIChatService interface.

No, that's not possible however you can create your own service similar to our implementation however with your own logic.

Thank you for your reply. Can this control be used as a regular chat control without the AIChatService implementation?

We haven’t tried it however for sure you can create similar custom component with our styles.

RadzenAIChat injects IAIChatService. You can register your own implementation which does whatever you need:

builder.Services.AddScoped<IAIChatService, MyAIChatService>();

then implement the IAIChatService interface as you need. Feel free to copy the existing one.