@xuda.io/ai_module 1.1.4696 → 1.1.4697

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 +3 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6810,6 +6810,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
6810
6810
  const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
6811
6811
 
6812
6812
  let prompt,
6813
+ url,
6813
6814
  factual_prompt,
6814
6815
  originalname,
6815
6816
  factual_image_mode,
@@ -6868,7 +6869,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
6868
6869
  try {
6869
6870
  // first attempt
6870
6871
  if (account_type === 'business') {
6871
- let url = await get_url();
6872
+ url = await get_url();
6872
6873
 
6873
6874
  if (url.substr(0, 8) !== 'https://') {
6874
6875
  profile_picture_source = 'factual';
@@ -6896,6 +6897,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
6896
6897
  factual_image_mode = true;
6897
6898
  profile_picture_source = 'factual';
6898
6899
  }
6900
+
6899
6901
  if (factual_image_mode) {
6900
6902
  imageBase64 = await create_image(uid, factual_prompt, undefined, undefined, 1, undefined, undefined, {}, account_profile_info);
6901
6903
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4696",
3
+ "version": "1.1.4697",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",