@xuda.io/ai_module 1.1.3857 → 1.1.3859
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 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3073,6 +3073,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid) {
|
|
|
3073
3073
|
“${doc.properties.menuName}” and also base on the instructions : "${doc.agentConfig.agent_instructions}"
|
|
3074
3074
|
Output one option 3 words max.`,
|
|
3075
3075
|
model: 'gpt-5-nano',
|
|
3076
|
+
metadata: { agent_id: db_doc._id },
|
|
3076
3077
|
});
|
|
3077
3078
|
|
|
3078
3079
|
return ret.data;
|
|
@@ -4955,6 +4956,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4955
4956
|
],
|
|
4956
4957
|
},
|
|
4957
4958
|
],
|
|
4959
|
+
metadata: { conversation_id },
|
|
4958
4960
|
});
|
|
4959
4961
|
|
|
4960
4962
|
return ret;
|
|
@@ -5616,6 +5618,7 @@ export const convert_profile_image_to_avatar = async function (req, job_id, head
|
|
|
5616
5618
|
response_format: z.object({
|
|
5617
5619
|
is_real_person_in_picture: z.boolean().describe('if a postrate of real person in the picture return true otherwise return false'),
|
|
5618
5620
|
}),
|
|
5621
|
+
metadata: { account_id: account_obj._id },
|
|
5619
5622
|
});
|
|
5620
5623
|
|
|
5621
5624
|
const res = JSON5.parse(ret.data);
|