File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ private static void EnsureInitialized()
5454 return ;
5555
5656 var llmSettings = ConfigurationService . GetSection < LargeLanguageModelsSettings > ( ) ;
57- if ( llmSettings == null )
57+ if ( llmSettings is null or { EnableSelfHealing : false , EnableSmartFailureAnalysis : false } )
5858 return ;
5959
6060 var genSettings = llmSettings . ModelSettings [ 0 ] ;
Original file line number Diff line number Diff line change @@ -243,7 +243,12 @@ public static void ConfigureLLM()
243243 try
244244 {
245245 var settings = ConfigurationService . GetSection < LargeLanguageModelsSettings > ( ) ;
246-
246+ if ( ! settings . EnableSelfHealing && ! settings . EnableSmartFailureAnalysis )
247+ {
248+ Logger . LogError ( "LLM Features are disabled." ) ;
249+ return ;
250+ }
251+
247252 SemanticKernelService . Kernel . ImportPluginFromObject ( new LocatorSkill ( ) , nameof ( LocatorSkill ) ) ;
248253 SemanticKernelService . Kernel . ImportPluginFromObject ( new AssertionSkill ( ) , nameof ( AssertionSkill ) ) ;
249254 SemanticKernelService . Kernel . ImportPluginFromObject ( new PageObjectSummarizerSkill ( ) , nameof ( PageObjectSummarizerSkill ) ) ;
You can’t perform that action at this time.
0 commit comments