@tiledesk/tiledesk-tybot-connector 0.2.138-rc6 → 0.2.138-rc8
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
|
@@ -624,10 +624,10 @@ class DirAskGPTV2 {
|
|
|
624
624
|
return new Promise((resolve) => {
|
|
625
625
|
let engine = {
|
|
626
626
|
name: "pinecone",
|
|
627
|
-
type:
|
|
627
|
+
type: process.env.PINECONE_TYPE,
|
|
628
628
|
apikey: "",
|
|
629
629
|
vector_size: 1536,
|
|
630
|
-
index_name:
|
|
630
|
+
index_name: process.env.PINECONE_INDEX
|
|
631
631
|
}
|
|
632
632
|
resolve(engine);
|
|
633
633
|
})
|
|
@@ -26,6 +26,7 @@ class DirMessage {
|
|
|
26
26
|
this.token = context.token;
|
|
27
27
|
this.log = this.context.log;
|
|
28
28
|
this.supportRequest = this.context.supportRequest
|
|
29
|
+
this.hMessage = false
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
execute(directive, callback) {
|
|
@@ -70,6 +71,7 @@ class DirMessage {
|
|
|
70
71
|
}
|
|
71
72
|
if (directive.name === Directives.HMESSAGE) {
|
|
72
73
|
action.attributes.subtype = "info";
|
|
74
|
+
this.hMessage = true;
|
|
73
75
|
}
|
|
74
76
|
// if (directive.name === Directives.HMESSAGE) {
|
|
75
77
|
// action.sender = "tiledesk";
|
|
@@ -95,7 +97,7 @@ class DirMessage {
|
|
|
95
97
|
const message = action;
|
|
96
98
|
if (this.log) {console.log("Message to extEndpoint:", JSON.stringify(message))};
|
|
97
99
|
|
|
98
|
-
if(this.supportRequest && !this.supportRequest.draft){
|
|
100
|
+
if(this.hMessage && this.supportRequest && !this.supportRequest.draft){
|
|
99
101
|
callback();
|
|
100
102
|
return;
|
|
101
103
|
}
|