New to Telerik UI for ASP.NET MVC? Start a free 30-day trial
Integration with Microsoft.Extensions.AI
The AIPrompt component incorporates the Microsoft.Extensions.AI
package to simplify your AI model integration, provide flexibility and allows you to easily use and test various AI providers.
Other components will support similar integration in future versions of UI for ASP.NET MVC.
Integration
To integrate the Microsoft.Extensions.AI
library with your AIPrompt component, register an IChatClient
service and configure it according to the model you are using. The AIPrompt is designed to automatically use the registered IChatClient
.
Microsoft.Extensions.AI
provides a simple integration with various models where the configuration slightly differs depending on the model. You may explore examples with different models in this post.