@tiledesk/tiledesk-tybot-connector 2.0.8-rc3 → 2.0.9-rc1
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 +8 -4
- package/index.js +1 -14
- package/logs/app.log +20243 -9295
- package/logs/app1.log +15517 -0
- package/package.json +1 -1
- package/logs/app2.log +0 -46280
- package/logs/app3.log +0 -31686
- package/logs/app4.log +0 -46163
- package/logs/app5.log +0 -39983
- package/logs/app6.log +0 -5964
package/CHANGELOG.md
CHANGED
|
@@ -5,13 +5,17 @@
|
|
|
5
5
|
available on:
|
|
6
6
|
▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
|
|
7
7
|
|
|
8
|
+
# 2.0.9-rc1
|
|
9
|
+
- removed: speech-to-text management
|
|
10
|
+
|
|
11
|
+
# 2.0.8
|
|
12
|
+
|
|
13
|
+
# 2.0.8-rc2
|
|
14
|
+
- added: check on preloaded_request_id in /block
|
|
15
|
+
|
|
8
16
|
# 2.0.8-rc1
|
|
9
17
|
- removed: TILEBOT_LOG var
|
|
10
18
|
|
|
11
|
-
# 0.5.1-rc1
|
|
12
|
-
- added json_buttons
|
|
13
|
-
- added winston log with code refactoring
|
|
14
|
-
|
|
15
19
|
# v0.5.0
|
|
16
20
|
- added: AI_ENDPOINT env var
|
|
17
21
|
|
package/index.js
CHANGED
|
@@ -65,20 +65,7 @@ router.post('/ext/:botid', async (req, res) => {
|
|
|
65
65
|
message.request.id_project = projectId;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
let aiService = new AiService({
|
|
70
|
-
API_ENDPOINT: API_ENDPOINT,
|
|
71
|
-
TOKEN: token,
|
|
72
|
-
PROJECT_ID: projectId
|
|
73
|
-
})
|
|
74
|
-
let isAudio = TiledeskChatbotUtil.isAudioMessage(message)
|
|
75
|
-
if(isAudio){
|
|
76
|
-
let responseText = await aiService.speechToText(message.metadata.src).catch(err => {
|
|
77
|
-
winston.error('(index.js) aiService.speechToText error: ', err)
|
|
78
|
-
})
|
|
79
|
-
if(responseText && responseText.text)
|
|
80
|
-
message.text = responseText.text
|
|
81
|
-
}
|
|
68
|
+
|
|
82
69
|
|
|
83
70
|
// validate reuqestId
|
|
84
71
|
let isValid = TiledeskChatbotUtil.validateRequestId(requestId, projectId);
|