@hivegpt/hiveai-angular 0.0.303 → 0.0.304
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/bundles/hivegpt-hiveai-angular.umd.js +4 -2
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/chat-drawer/chat-drawer.component.js +5 -3
- package/fesm2015/hivegpt-hiveai-angular.js +4 -2
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1767,7 +1767,8 @@
|
|
|
1767
1767
|
};
|
|
1768
1768
|
// Toggle the dropdown visibility
|
|
1769
1769
|
ChatDrawerComponent.prototype.toggleDropdown = function () {
|
|
1770
|
-
this.
|
|
1770
|
+
if (!this.agents)
|
|
1771
|
+
this.fetchAgents();
|
|
1771
1772
|
this.isDropdownOpen = !this.isDropdownOpen;
|
|
1772
1773
|
this.cdr.detectChanges();
|
|
1773
1774
|
};
|
|
@@ -2108,13 +2109,14 @@
|
|
|
2108
2109
|
};
|
|
2109
2110
|
ChatDrawerComponent.prototype.makeAskRequest = function (inputMsg, agents, conversationId, msg, chat, workflowId, workflow_inputs) {
|
|
2110
2111
|
var _this = this;
|
|
2112
|
+
var _a;
|
|
2111
2113
|
var url = this.environment.BASE_URL + "/ai/ask";
|
|
2112
2114
|
var body = {
|
|
2113
2115
|
user_question: inputMsg,
|
|
2114
2116
|
user_id: this.userId,
|
|
2115
2117
|
bot_id: this.botId,
|
|
2116
2118
|
message_id: this.conversationService.generateKey(),
|
|
2117
|
-
agents: agents.filter(function (p) { return p.selected; }).map(function (p) { return p.id; }),
|
|
2119
|
+
agents: (_a = agents === null || agents === void 0 ? void 0 : agents.filter(function (p) { return p.selected; }).map(function (p) { return p.id; })) !== null && _a !== void 0 ? _a : [],
|
|
2118
2120
|
conversation_id: conversationId,
|
|
2119
2121
|
};
|
|
2120
2122
|
if (workflowId) {
|