fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
3 changed files with 9 additions and 7 deletions
Showing only changes of commit 7a6d14cf3a - Show all commits

View file

@ -875,12 +875,14 @@ export class GBConversationalService {
});
}
return await step.replaceDialog(`/${intent}`, step.activeDialog.state.options);
await step.replaceDialog(`/${intent}`, step.activeDialog.state.options);
return true;
}
GBLog.info(`NLP NOT called: score: ${score} > required (nlpScore): ${instanceScore}`);
return null;
return false;
}
public async getLanguage(min: GBMinInstance, text: string): Promise<string> {

View file

@ -195,7 +195,7 @@ export class AskDialog extends IGBDialog {
await GBVMService.callVM(startDialog.toLowerCase().trim(), min, step, user, this.deployer, false);
}
return step.endDialog();
return await step.endDialog();
}
const locale = step.context.activity.locale;
@ -270,9 +270,9 @@ export class AskDialog extends IGBDialog {
// Tries to answer by NLP.
let nextDialog = await min.conversationalService.routeNLP(step, min, text);
if (nextDialog) {
return nextDialog;
let handled = await min.conversationalService.routeNLP(step, min, text);
if (handled) {
return;
}
// Tries to answer by Reading Comprehension.