@xuda.io/ai_module 1.1.4330 → 1.1.4332

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 +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6739,7 +6739,6 @@ const get_profile_image = async function (uid, account_type = 'personal', name,
6739
6739
  switch (account_type) {
6740
6740
  case 'personal': {
6741
6741
  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`;
6742
-
6743
6742
  originalname = normalizeFilename(name) + '_xu_profile.png';
6744
6743
  break;
6745
6744
  }
@@ -6751,6 +6750,7 @@ const get_profile_image = async function (uid, account_type = 'personal', name,
6751
6750
  }
6752
6751
 
6753
6752
  default:
6753
+ throw new Error('account_type not supported');
6754
6754
  break;
6755
6755
  }
6756
6756
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4330",
3
+ "version": "1.1.4332",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",