@xuda.io/ai_module 1.1.5180 → 1.1.5181
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 -2
- 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
|
///////////
|
|
@@ -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 {
|