@tiledesk/tiledesk-tybot-connector 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,9 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
+ # v0.3.4
9
+ -bug-fixed: slit is undefined in TiledeskChatbotUtils
10
+
8
11
  # v0.3.3
9
12
  - bug-fixed: text is undefined in responseText while transcript message
10
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -133,8 +133,12 @@ class DirAskGPTV2 {
133
133
  )
134
134
  if (this.log) { console.log("DirAskGPT transcript string: ", transcript_string) }
135
135
 
136
- transcript = await TiledeskChatbotUtil.transcriptJSON(transcript_string);
137
- if (this.log) { console.log("DirAskGPT transcript ", transcript) }
136
+ if (transcript_string) {
137
+ transcript = await TiledeskChatbotUtil.transcriptJSON(transcript_string);
138
+ if (this.log) { console.log("DirAskGPT transcript ", transcript) }
139
+ } else {
140
+ if (this.log) { console.log("DirAskGPT transcript_string is undefined. Skip JSON translation for chat history") }
141
+ }
138
142
  }
139
143
 
140
144
  const kb_endpoint = process.env.KB_ENDPOINT_QA