node-sdk icon indicating copy to clipboard operation
node-sdk copied to clipboard

Response includes period character

Open fgoyti opened this issue 5 years ago • 2 comments

Overview Response includes a period at the end, only in the Node SDK. If I use curl or the Try button in the Dialog UI, there is no period (as expected). For example, response.result.output.generic[0].text returns "What API would you like to learn about?." In my Dialog, there is no period after the question mark.

Expected behavior No period after the question mark.

Actual behavior The SDK seems to append a period for every response.

How to reproduce assistant.message( { assistantId: myAssistantId, sessionId: session, input: { text: transcribedText } }) .then(response => { console.log (response.result.output.generic[0].text); });

Screenshots N/A

SDK Version "ibm-watson": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/ibm-watson/-/ibm-watson-6.0.3.tgz",

Additional information:

  • OS: Windows
  • Node v14.16.0

fgoyti avatar Mar 29 '21 17:03 fgoyti

Thank you for posting this issue I shall look into it shortly

apaparazzi0329 avatar Mar 29 '21 17:03 apaparazzi0329

Please disregard. This is not a bug. Error in my code.

fgoyti avatar Mar 29 '21 18:03 fgoyti