@tiledesk/tiledesk-tybot-connector 0.1.95 → 0.1.97

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,8 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
+ ### 0.1.96 - online
9
+
8
10
  ### 0.1.95
9
11
  - added "chatbot" instance to DirectivesChatbotPlug instance created in index.js
10
12
  - Fix: missing key API_ENDPOINT in production
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.1.95",
3
+ "version": "0.1.97",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -75,7 +75,8 @@ class DirAskGPT {
75
75
  console.log("falseIntentAttributes",falseIntentAttributes )
76
76
  }
77
77
 
78
- const kb_url = process.env.API_ENDPOINT + "/" + this.context.projectId + "/kbsettings";
78
+ const server_base_url = process.env.API_ENDPOINT || process.env.API_URL;
79
+ const kb_url = server_base_url + "/" + this.context.projectId + "/kbsettings";
79
80
  if (this.log) { console.log("ApiEndpoint URL: ", kb_url); }
80
81
  const KB_HTTPREQUEST = {
81
82
  url: kb_url,