mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: reuse new method loadSettings for llm nlu inference
This commit is contained in:
parent
25402e0db1
commit
9295e73c42
@ -165,7 +165,12 @@ export default class LlmNluHelper
|
||||
}
|
||||
|
||||
async predict(text: string): Promise<NLU.ParseEntities> {
|
||||
const settings = await this.getSettings();
|
||||
const settings: LlmNluHelperSettings | undefined =
|
||||
await this.loadSettings();
|
||||
if (!settings) {
|
||||
this.logger.error('Failed to load settings for Llm Nlu inference');
|
||||
return { entities: [] };
|
||||
}
|
||||
const helper = await this.helperService.getDefaultLlmHelper();
|
||||
const defaultLanguage = await this.languageService.getDefaultLanguage();
|
||||
// Detect language
|
||||
|
Loading…
Reference in New Issue
Block a user