@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
package/package.json
CHANGED
|
@@ -133,8 +133,12 @@ class DirAskGPTV2 {
|
|
|
133
133
|
)
|
|
134
134
|
if (this.log) { console.log("DirAskGPT transcript string: ", transcript_string) }
|
|
135
135
|
|
|
136
|
-
|
|
137
|
-
|
|
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
|