fix: improve error logging for LLM NLU helper prompt initialization

This commit is contained in:
medchedli
2025-05-29 11:28:39 +01:00
parent e562739019
commit 4492bbd4b8

View File

@@ -64,6 +64,7 @@ export default class LlmNluHelper
} catch (error) {
this.logger.warn(
'Settings for LLM NLU helper not found or invalid, language classifier prompt will not be built.',
error,
);
}
}
@@ -86,15 +87,11 @@ export default class LlmNluHelper
} catch (error) {
this.logger.warn(
'Settings for LLM NLU helper not found or invalid, trait classifier prompts will not be built.',
error,
);
}
}
async onModuleInit() {
super.onModuleInit();
// Add any additional initialization logic here if needed
}
async onApplicationBootstrap() {
try {
this.logger.log('Initializing LLM NLU helper, building prompts...');