@xuda.io/ai_module 1.1.4339 → 1.1.4340

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 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6736,7 +6736,7 @@ const get_profile_image = async function (uid, account_type = 'business', name,
6736
6736
 
6737
6737
  const get_factual_image = function () {};
6738
6738
 
6739
- let prompt, factual_prompt, originalname;
6739
+ let prompt, factual_prompt, originalname, factual_image_mode;
6740
6740
 
6741
6741
  switch (account_type) {
6742
6742
  case 'personal': {
@@ -6790,9 +6790,9 @@ const get_profile_image = async function (uid, account_type = 'business', name,
6790
6790
  file = await get_image_blob_from_downloaded_image(url);
6791
6791
  } catch (err) {
6792
6792
  // create factual image
6793
- let result = await create_image(uid, factual_prompt, undefined, undefined, 1, undefined, undefined, {}, account_profile_info);
6794
-
6795
- return console.error(err);
6793
+ imageBase64 = await create_image(uid, factual_prompt, undefined, undefined, 1, undefined, undefined, {}, account_profile_info);
6794
+ factual_image_mode = true;
6795
+ // return console.error(err);
6796
6796
  }
6797
6797
  }
6798
6798
  // const file = await get_image_blob_from_downloaded_image(url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4339",
3
+ "version": "1.1.4340",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",