fix(core.gbapp): Fix in Spanish NLP.

This commit is contained in:
Rodrigo Rodriguez 2021-02-02 15:43:02 -03:00
parent fb7347614e
commit a9a2bf8fd0

View file

@ -728,6 +728,7 @@ export class GBConversationalService {
text = text.substr(0, 4999); text = text.substr(0, 4999);
GBLog.warn(`Text that bot will translate will be truncated due to MSFT service limitations.`); GBLog.warn(`Text that bot will translate will be truncated due to MSFT service limitations.`);
} }
text = text.replace('¿', '');
let options = { let options = {
method: 'POST', method: 'POST',
@ -752,6 +753,7 @@ export class GBConversationalService {
}; };
try { try {
const results = await request(options); const results = await request(options);
return results[0].translations[0].text; return results[0].translations[0].text;