@xuda.io/ai_module 1.1.3616 → 1.1.3617

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.
Files changed (2) hide show
  1. package/index.mjs +4 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5758,7 +5758,9 @@ 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 { url, uid, account_obj, prompt } = req;
5761
+ const { url, app_id, uid, account_obj, ai_agent_id, prompt } = req;
5762
+
5763
+ const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, ai_agent_id);
5762
5764
 
5763
5765
  try {
5764
5766
  if (!url) {
@@ -5820,7 +5822,6 @@ export const create_ai_agent_image = async function (req, job_id, headers) {
5820
5822
  background: 'transparent',
5821
5823
  });
5822
5824
  imageBase64 = ai_avatar_response.data[0].b64_json;
5823
- avatar_source = 'ai profile';
5824
5825
  };
5825
5826
 
5826
5827
  await create_avatar_from_pic();
@@ -5843,7 +5844,7 @@ export const create_ai_agent_image = async function (req, job_id, headers) {
5843
5844
  mimetype: `image/${ext}`,
5844
5845
  };
5845
5846
 
5846
- const drive_ret = await drive_module.upload_drive_file_user({ uid, path: '/Profile Images' }, job_id, headers, file_obj);
5847
+ const drive_ret = await drive_module.upload_drive_file_studio({ uid, path: '/Progs Thumbnails' }, job_id, headers, file_obj);
5847
5848
 
5848
5849
  if (drive_ret.code > 0) {
5849
5850
  let db_doc = await db_module.get_couch_doc_native('xuda_accounts', account_obj._id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3616",
3
+ "version": "1.1.3617",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",