@xuda.io/ai_module 1.1.4336 → 1.1.4337

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
@@ -6734,17 +6734,21 @@ const get_profile_image = async function (uid, account_type = 'business', name,
6734
6734
  .replace(/^_+|_+$/g, ''); // trim leading/trailing underscores
6735
6735
  }
6736
6736
 
6737
- let prompt, originalname;
6737
+ const get_factual_image = function () {};
6738
+
6739
+ let prompt, factual_prompt, originalname;
6738
6740
 
6739
6741
  switch (account_type) {
6740
6742
  case 'personal': {
6741
6743
  prompt = `find "${name}" person profile image base on the following facts: "${JSON.stringify(facts)}", Return only png,jpg image url single result e.g: "https://fb.com/person_image.png", nothing else`;
6744
+ factual_prompt = ``;
6742
6745
  originalname = normalizeFilename(name) + '_xu_profile.png';
6743
6746
  break;
6744
6747
  }
6745
6748
 
6746
6749
  case 'business': {
6747
6750
  prompt = `find "${name}" icon/logo, Return only png,jpg image url single result e.g: "https://example.com/logo_image.png", nothing else`;
6751
+ factual_prompt = `create logo for the company named: "${name}" the logo should only be initials of the name or geometric shape`;
6748
6752
  originalname = normalizeFilename(name) + '_xu_logo.png';
6749
6753
  break;
6750
6754
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4336",
3
+ "version": "1.1.4337",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",