UNIVPLMDataIntegration/Admin.NET/Admin.NET.Core/Ai/Extentions/LLMFactoryExtention.cs

22 lines
529 B
C#

using Admin.NET.Core.Ai.Interface;
using Admin.NET.Core.Ai.Services;
using Admin.NET.Core.Ai.Services.Infrastructure;
namespace Admin.NET.Core.Ai.Extentions;
public static class LLMFactoryExtention
{
/// <summary>
/// 注册LLM模型工厂
/// </summary>
/// <param name="services"></param>
/// <returns></returns>
public static IServiceCollection AddLLMFactory(this IServiceCollection services)
{
services.AddTransient<ILLMFactory, ChangeModelFactory>();
return services;
}
}