@tiledesk/tiledesk-tybot-connector 2.0.44 → 2.0.45
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/package.json
CHANGED
|
@@ -158,6 +158,10 @@ class DirAddKbContent {
|
|
|
158
158
|
name: filled_name,
|
|
159
159
|
source: filled_name
|
|
160
160
|
};
|
|
161
|
+
|
|
162
|
+
if (action.tags && Array.isArray(action.tags) && action.tags.every(tag => typeof tag === "string")) {
|
|
163
|
+
json .tags = action.tags;
|
|
164
|
+
}
|
|
161
165
|
|
|
162
166
|
winston.debug("[DirAddKbContent] json:", json);
|
|
163
167
|
|
|
@@ -341,6 +341,10 @@ class DirAskGPTV2 {
|
|
|
341
341
|
json.chat_history_dict = await this.transcriptToLLM(transcript);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
+
if (action.tags && Array.isArray(action.tags) && action.tags.every(tag => typeof tag === "string")) {
|
|
345
|
+
json.tags = action.tags;
|
|
346
|
+
}
|
|
347
|
+
|
|
344
348
|
winston.debug("DirAskGPTV2 json:", json);
|
|
345
349
|
|
|
346
350
|
let kb_endpoint = process.env.KB_ENDPOINT_QA;
|