@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.
- package/index.mjs +3 -3
- 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
|
|
4591
|
-
for (const doc of ai_agents_ret.
|
|
4592
|
-
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);
|
|
4593
4593
|
}
|
|
4594
4594
|
}
|
|
4595
4595
|
|