@xuda.io/ai_module 1.1.3772 → 1.1.3773
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 +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4277,7 +4277,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4277
4277
|
};
|
|
4278
4278
|
},
|
|
4279
4279
|
};
|
|
4280
|
-
|
|
4280
|
+
|
|
4281
4281
|
try {
|
|
4282
4282
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
4283
4283
|
const app_obj = await get_app_obj(app_id);
|
|
@@ -4435,6 +4435,10 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4435
4435
|
let ai_agent_doc;
|
|
4436
4436
|
try {
|
|
4437
4437
|
ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, agent_id);
|
|
4438
|
+
if (ai_agent_doc.studio_meta.shared_from_uid) {
|
|
4439
|
+
const app_id = await account_module.get_account_default_project_id(e.team_req_from_uid);
|
|
4440
|
+
const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, e.share_item_id);
|
|
4441
|
+
}
|
|
4438
4442
|
} catch (err) {
|
|
4439
4443
|
throw new Error(err.message);
|
|
4440
4444
|
}
|