@xuda.io/ai_module 1.1.4079 → 1.1.4081

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 +5 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5511,6 +5511,10 @@ const create_and_upload_image_to_drive = async function (drive_type, file_path,
5511
5511
  }
5512
5512
  };
5513
5513
 
5514
+ export const create_account_profile_avatar = async function (req, job_id, headers) {
5515
+ return await create_profile_avatar(req, job_id, headers);
5516
+ };
5517
+
5514
5518
  export const create_profile_avatar = async function (req, job_id, headers) {
5515
5519
  async function normalizeBase64To1024(base64Image) {
5516
5520
  const inputBuffer = Buffer.from(base64Image, 'base64');
@@ -5607,7 +5611,7 @@ export const create_profile_avatar = async function (req, job_id, headers) {
5607
5611
  const res = JSON5.parse(ret.data);
5608
5612
  return res?.is_real_person_in_picture;
5609
5613
  };
5610
-
5614
+ debugger;
5611
5615
  // const drive_module = await import(`${module_path}/drive_module/index.mjs`);
5612
5616
  const { url, uid, account_obj, prompt, is_profile_avatar } = req;
5613
5617
  if (!is_profile_avatar) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4079",
3
+ "version": "1.1.4081",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",