@xuda.io/ai_module 1.1.3745 → 1.1.3746
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/index.mjs +6 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1798,6 +1798,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1798
1798
|
if (reference_id) {
|
|
1799
1799
|
opt.selector.reference_id = reference_id;
|
|
1800
1800
|
}
|
|
1801
|
+
|
|
1801
1802
|
if (conversation_id) {
|
|
1802
1803
|
opt._id = conversation_id;
|
|
1803
1804
|
}
|
|
@@ -2375,7 +2376,7 @@ export const get_ai_agent_info = async function (uid, job_id, headers, doc, from
|
|
|
2375
2376
|
};
|
|
2376
2377
|
|
|
2377
2378
|
export const get_ai_agents = async function (req, job_id, headers) {
|
|
2378
|
-
let { uid, _id, search, filter_type = 'all', limit, skip } = req;
|
|
2379
|
+
let { uid, _id, search, filter_type = 'all', limit, skip, ai_agent_id } = req;
|
|
2379
2380
|
|
|
2380
2381
|
try {
|
|
2381
2382
|
if (_id) {
|
|
@@ -2439,6 +2440,10 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2439
2440
|
],
|
|
2440
2441
|
};
|
|
2441
2442
|
}
|
|
2443
|
+
|
|
2444
|
+
if (ai_agent_id) {
|
|
2445
|
+
opt._id = ai_agent_id;
|
|
2446
|
+
}
|
|
2442
2447
|
//////////////
|
|
2443
2448
|
|
|
2444
2449
|
const app_id = await account_module.get_account_default_project_id(uid);
|