Merge pull request #387 from Hexastack/fix/nlp-threshold

fix: apply nlp threshold
This commit is contained in:
Med Marrouchi 2024-11-28 17:56:42 +01:00 committed by GitHub
commit 693579c6bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -270,7 +270,7 @@ export class ChatService {
if (event.getText() && !event.getNLP()) {
try {
const helper = await this.helperService.getDefaultNluHelper();
const nlp = await helper.predict(event.getText());
const nlp = await helper.predict(event.getText(), true);
event.setNLP(nlp);
} catch (err) {
this.logger.error('Unable to perform NLP parse', err);