@xuda.io/ai_module 1.1.3622 → 1.1.3624

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 +2 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5812,7 +5812,6 @@ export const create_ai_agent_image = async function (req, job_id, headers) {
5812
5812
  //////////////////
5813
5813
  imageBase64 = Buffer.from(await images[0].image_blob.arrayBuffer()).toString('base64');
5814
5814
 
5815
- const { first_name, last_name, bio, country, mainCategory, subCategory } = account_obj.account_info;
5816
5815
  const ai_avatar_response = await client.images.edit({
5817
5816
  model: 'chatgpt-image-latest',
5818
5817
  image: images[0].image_blob,
@@ -5850,7 +5849,7 @@ export const create_ai_agent_image = async function (req, job_id, headers) {
5850
5849
  console.log('Success! Saved →', outputPath);
5851
5850
 
5852
5851
  const ext = 'png';
5853
- const originalname = `avatar_${account_obj?.account_info?.email || account_obj._id}.${ext}`;
5852
+ const originalname = `ai_avatar_${ai_agent_id}.${ext}`;
5854
5853
 
5855
5854
  const file_obj = {
5856
5855
  originalname,
@@ -5858,7 +5857,7 @@ export const create_ai_agent_image = async function (req, job_id, headers) {
5858
5857
  mimetype: `image/${ext}`,
5859
5858
  };
5860
5859
 
5861
- const drive_ret = await drive_module.upload_drive_file_studio({ uid, path: '/Progs Thumbnails' }, job_id, headers, file_obj);
5860
+ const drive_ret = await drive_module.upload_drive_file_studio({ uid, app_id, path: '/Progs Thumbnails' }, job_id, headers, file_obj);
5862
5861
 
5863
5862
  if (drive_ret.code > 0) {
5864
5863
  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.3622",
3
+ "version": "1.1.3624",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",