fix(kb.gbapp): #297 Spellchecker fixed after MSFT changes in service.
This commit is contained in:
parent
ec1c38f378
commit
80853f014c
3 changed files with 3 additions and 5 deletions
|
@ -132,7 +132,7 @@
|
|||
"phone": "3.1.30",
|
||||
"pizzip": "3.1.3",
|
||||
"pptxtemplater": "1.0.5",
|
||||
"pragmatismo-io-framework": "1.1.0",
|
||||
"pragmatismo-io-framework": "1.1.1",
|
||||
"prism-media": "1.3.4",
|
||||
"public-ip": "6.0.1",
|
||||
"punycode": "2.1.1",
|
||||
|
|
|
@ -887,10 +887,10 @@ export class GBConversationalService {
|
|||
const key = min.core.getParam<string>(min.instance, 'spellcheckerKey', null);
|
||||
|
||||
if (key) {
|
||||
text = text.charAt(0).toUpperCase() + text.slice(1);
|
||||
text = text.charAt(0).toUpperCase() + text.slice(1);
|
||||
const data = await AzureText.getSpelledText(key, text);
|
||||
if (data !== text) {
|
||||
GBLog.info(`Spelling corrected (processMessageActivity): ${data}`);
|
||||
GBLog.info(`Spelling>: ${data}`);
|
||||
text = data;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1363,8 +1363,6 @@ export class GBMinService {
|
|||
step.context.activity['text'] = text;
|
||||
step.context.activity['originalText'] = originalText;
|
||||
|
||||
GBLog.info(`Text>: ${text}.`);
|
||||
|
||||
if (user.agentMode === 'self') {
|
||||
const manualUser = await sec.getUserFromAgentSystemId(user.userSystemId);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue