@tiledesk/tiledesk-server 2.13.0 → 2.13.2

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,7 +5,10 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
- # 2.12.0
8
+ # 2.13.2
9
+ - Bug fix: wrong endpoint for hybrid qa
10
+
11
+ # 2.13.0
9
12
  - Updated: whatsapp module listener
10
13
  - Updated: whatsapp-connector to 1.0.0
11
14
  - Updated: tybot-connector to 2.0.26
package/deploy.sh CHANGED
@@ -1,5 +1,5 @@
1
1
  git pull
2
- npm version minor
2
+ npm version patch
3
3
  version=`node -e 'console.log(require("./package.json").version)'`
4
4
  echo "version $version"
5
5
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.13.0",
4
+ "version": "2.13.2",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -199,12 +199,14 @@ class AiService {
199
199
  }
200
200
 
201
201
  askNamespace(data) {
202
+ winston.info("askNamespace data: ", data);
202
203
  let base_url = kb_endpoint_qa;
203
- if (data.hybrid) {
204
+ if (data.hybrid || data.search_type === 'hybrid') {
204
205
  base_url = kb_endpoint_qa_gpu;
205
206
  }
206
207
  winston.debug("[OPENAI SERVICE] kb endpoint: " + base_url);
207
-
208
+ winston.info("[OPENAI SERVICE] kb endpoint: " + base_url);
209
+
208
210
  return new Promise((resolve, reject) => {
209
211
 
210
212
  axios({