@xuda.io/ai_module 1.1.5180 → 1.1.5182
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4688,7 +4688,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4688
4688
|
let _agent = [];
|
|
4689
4689
|
|
|
4690
4690
|
await update_job('preparing tools');
|
|
4691
|
-
|
|
4691
|
+
let agents = await get_agents();
|
|
4692
4692
|
|
|
4693
4693
|
/////////////
|
|
4694
4694
|
if (attachments?.length) {
|
|
@@ -4713,6 +4713,10 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4713
4713
|
if (job_info.code < 0 || job_info.data.stat === 4) {
|
|
4714
4714
|
return { code: 5, data: 'aborted' };
|
|
4715
4715
|
}
|
|
4716
|
+
if (job_info.data.payload.ai_agents) {
|
|
4717
|
+
ai_agents = job_info.data.payload.ai_agents;
|
|
4718
|
+
agents = await get_agents();
|
|
4719
|
+
}
|
|
4716
4720
|
}
|
|
4717
4721
|
}
|
|
4718
4722
|
///////////
|
|
@@ -4863,7 +4867,7 @@ setTimeout(async () => {
|
|
|
4863
4867
|
|
|
4864
4868
|
// await init_studio_units();
|
|
4865
4869
|
let ret;
|
|
4866
|
-
ret = await get_chat_suggestions({ uid, ai_agents: [], conversation_item_id: 'coi_7b65b783af38b91c8ec4c499d3694bab' });
|
|
4870
|
+
// ret = await get_chat_suggestions({ uid, ai_agents: [], conversation_item_id: 'coi_7b65b783af38b91c8ec4c499d3694bab' });
|
|
4867
4871
|
// ret = await get_active_account_profile_info(uid);
|
|
4868
4872
|
// ret = await is_spam_email(uid, 'dsgr8-2994400420@gigs.craigslist.org', 'To: You, From: Us - 70% Off Stickers & Labels Today Only');
|
|
4869
4873
|
// ret = await is_spam_email(uid, 'noreply@tm.openai.com', 'Please update your Plus payment method', account_profile_info);
|
|
@@ -11019,7 +11023,6 @@ export const get_chat_suggestions = async function (req) {
|
|
|
11019
11023
|
response_format: AgentResponseSchema,
|
|
11020
11024
|
metadata: { conversation_item_id, func: 'get_chat_suggestions' },
|
|
11021
11025
|
account_profile_info,
|
|
11022
|
-
|
|
11023
11026
|
response_id: conversation_item_doc.conversation_item_reference_id,
|
|
11024
11027
|
});
|
|
11025
11028
|
try {
|