diff --git a/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIOptions.cs b/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIOptions.cs index 09c8a3de00..6fca2cfc00 100644 --- a/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIOptions.cs +++ b/framework/src/Volo.Abp.AI/Volo/Abp/AI/AbpAIOptions.cs @@ -44,8 +44,8 @@ public class WorkspaceConfigurationDictionary : Dictionary configureAction) { - if (ChatClient is null) - { - ChatClient = new ChatClientConfiguration(); - } - configureAction(ChatClient); return this; } @@ -66,11 +61,6 @@ public class WorkspaceConfiguration public WorkspaceConfiguration ConfigureKernel(Action configureAction) { - if (Kernel is null) - { - Kernel = new KernelConfiguration(); - } - configureAction(Kernel); return this; }