@xuda.io/ai_module 1.1.3617 → 1.1.3619
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5758,10 +5758,11 @@ export const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
5758
5758
|
return { is_transparent, image_blob: new Blob([buffer], { type: 'image/png' }) };
|
|
5759
5759
|
}
|
|
5760
5760
|
|
|
5761
|
-
const {
|
|
5761
|
+
const { app_id, uid, account_obj, ai_agent_id, prompt } = req;
|
|
5762
5762
|
|
|
5763
5763
|
const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, ai_agent_id);
|
|
5764
|
-
|
|
5764
|
+
const account_doc = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
5765
|
+
let url = account_doc.account_info.profile_avatar;
|
|
5765
5766
|
try {
|
|
5766
5767
|
if (!url) {
|
|
5767
5768
|
throw new Error('No URL provided in request');
|