@xuda.io/ai_module 1.1.3970 → 1.1.3972
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 +3 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2380,8 +2380,6 @@ const get_user_ai_agents = async function (uid) {
|
|
|
2380
2380
|
stat: 3,
|
|
2381
2381
|
'properties.menuType': 'ai_agent',
|
|
2382
2382
|
},
|
|
2383
|
-
|
|
2384
|
-
sort: ['ts'],
|
|
2385
2383
|
};
|
|
2386
2384
|
return await db_module.find_app_couch_query(app_id, opt);
|
|
2387
2385
|
};
|
|
@@ -4589,9 +4587,9 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4589
4587
|
ai_agents = [];
|
|
4590
4588
|
} else if (!ai_agents.length) {
|
|
4591
4589
|
// auto agent mode
|
|
4592
|
-
const ai_agents_ret = await
|
|
4593
|
-
for (const doc of ai_agents_ret.
|
|
4594
|
-
ai_agents.push(doc.
|
|
4590
|
+
const ai_agents_ret = await get_user_ai_agents(uid);
|
|
4591
|
+
for (const doc of ai_agents_ret.docs) {
|
|
4592
|
+
ai_agents.push(doc._id);
|
|
4595
4593
|
}
|
|
4596
4594
|
}
|
|
4597
4595
|
|