@tiledesk/tiledesk-server 2.4.60 → 2.4.63
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 +6 -1
- package/package.json +1 -1
- package/routes/kbsettings.js +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -5,8 +5,13 @@
|
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
|
7
7
|
|
|
8
|
-
# 2.4.
|
|
8
|
+
# 2.4.63
|
|
9
|
+
- downgrade tybot-connector to 0.1.97
|
|
10
|
+
|
|
11
|
+
# 2.4.62
|
|
9
12
|
- improved kbsettings endpoints for qa, scrape and check status
|
|
13
|
+
- update tiledesk-whatsapp-connector to 0.1.52
|
|
14
|
+
- update tiledesk-telegram-connector to 0.1.8
|
|
10
15
|
|
|
11
16
|
# 2.4.59
|
|
12
17
|
- update tiledesk-whatsapp-connector to 0.1.52
|
package/package.json
CHANGED
package/routes/kbsettings.js
CHANGED
|
@@ -103,15 +103,12 @@ router.delete('/:settings_id/:kb_id', async (req, res) => {
|
|
|
103
103
|
router.post('/qa', async (req, res) => {
|
|
104
104
|
let data = req.body;
|
|
105
105
|
winston.debug("/qa data: ", data);
|
|
106
|
-
console.log("/qa data: ", data);
|
|
107
106
|
|
|
108
107
|
openaiService.ask(data).then((resp) => {
|
|
109
108
|
winston.debug("qa resp: ", resp.data);
|
|
110
|
-
console.log("qa resp: ", resp.data);
|
|
111
109
|
res.status(200).send(resp.data);
|
|
112
110
|
}).catch((err) => {
|
|
113
111
|
winston.error("qa err: ", err);
|
|
114
|
-
console.error("qa err: ", err);
|
|
115
112
|
let status = err.response.status;
|
|
116
113
|
res.status(status).send({ statusText: err.response.statusText, detail: err.response.data.detail });
|
|
117
114
|
})
|
|
@@ -121,15 +118,12 @@ router.post('/startscrape', async (req, res) => {
|
|
|
121
118
|
|
|
122
119
|
let data = req.body;
|
|
123
120
|
winston.debug("/startscrape data: ", data);
|
|
124
|
-
console.log("/startscrape data: ", data);
|
|
125
121
|
|
|
126
122
|
openaiService.startScrape(data).then((resp) => {
|
|
127
123
|
winston.debug("startScrape resp: ", resp.data);
|
|
128
|
-
console.log("startScrape resp: ", resp.data);
|
|
129
124
|
res.status(200).send(resp.data);
|
|
130
125
|
}).catch((err) => {
|
|
131
126
|
winston.error("startScrape err: ", err);
|
|
132
|
-
console.error("startScrape err: ", err);
|
|
133
127
|
let status = err.response.status;
|
|
134
128
|
res.status(status).send({ statusText: err.response.statusText, detail: err.response.data.detail });
|
|
135
129
|
})
|
|
@@ -140,15 +134,12 @@ router.post('/checkstatus', async (req, res) => {
|
|
|
140
134
|
|
|
141
135
|
let data = req.body;
|
|
142
136
|
winston.debug("/checkstatus data: ", data);
|
|
143
|
-
console.log("/checkstatus data: ", data);
|
|
144
137
|
|
|
145
138
|
openaiService.checkStatus(data).then((resp) => {
|
|
146
139
|
winston.debug("checkStatus resp: ", resp.data);
|
|
147
|
-
console.log("checkStatus resp: ", resp.data);
|
|
148
140
|
res.status(200).send(resp.data);
|
|
149
141
|
}).catch((err) => {
|
|
150
142
|
winston.error("checkstatus err: ", err);
|
|
151
|
-
console.error("checkstatus err: ", err);
|
|
152
143
|
let status = err.response.status;
|
|
153
144
|
res.status(status).send({ statusText: err.response.statusText, detail: err.response.data.detail });
|
|
154
145
|
})
|