diff --git a/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIOptions.cs b/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIChatClientOptions.cs similarity index 73% rename from framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIOptions.cs rename to framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIChatClientOptions.cs index 36a4dd8a81..054f4ac8e2 100644 --- a/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIOptions.cs +++ b/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIChatClientOptions.cs @@ -1,6 +1,6 @@ namespace Volo.Abp.AI; -public class AbpAIOptions +public class AbpAIChatClientOptions { public ChatClientConfigurationDictionary ChatClients { get; } = new(); } \ No newline at end of file diff --git a/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIModule.cs b/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIModule.cs index 74c9ec0822..08578f9467 100644 --- a/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIModule.cs +++ b/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIModule.cs @@ -3,11 +3,18 @@ using Volo.Abp.Modularity; namespace Volo.Abp.AI; +/* TODO: + * - A factory service (IChatClientFactory) to create a IChatClient by given name + * (currently, we are using a keyed service collection to resolve the IChatClient) + * - We can also inject typed clients, like ICommentSummaryChatClient or IChatClient (more practical to resolve) + * - + */ + public class AbpAIModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { - var options = context.Services.ExecutePreConfiguredActions(); + var options = context.Services.ExecutePreConfiguredActions(); foreach (var chatClientConfig in options.ChatClients.Values) {