@xuda.io/ai_module 1.1.3971 → 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.
Files changed (2) hide show
  1. package/index.mjs +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4587,9 +4587,9 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4587
4587
  ai_agents = [];
4588
4588
  } else if (!ai_agents.length) {
4589
4589
  // auto agent mode
4590
- const ai_agents_ret = await get_ai_agents({ uid });
4591
- for (const doc of ai_agents_ret.data.docs) {
4592
- ai_agents.push(doc.id);
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);
4593
4593
  }
4594
4594
  }
4595
4595
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3971",
3
+ "version": "1.1.3972",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",