@xuda.io/ai_module 1.1.4704 → 1.1.4705

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 +14 -13
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6107,10 +6107,11 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6107
6107
  // });
6108
6108
  // account_module.record_ai_usage(uid, ai_avatar_response.usage.input_tokens, ai_avatar_response.usage.output_tokens, 'profile avatar', prompt, model, { profile_picture }, account_profile_info);
6109
6109
  // imageBase64 = ai_avatar_response.data[0].b64_json;
6110
-
6111
- imageBase64 = await create_image(
6112
- uid,
6113
- `
6110
+ if (is_real_person) {
6111
+ } else {
6112
+ imageBase64 = await create_image(
6113
+ uid,
6114
+ `
6114
6115
  Create a transparent PNG profile image depicting ${obj?.[business_size]}.
6115
6116
  The building’s architecture, materials, and overall atmosphere must reflect the business nature,
6116
6117
  aligned with ${mainCategory} and ${subCategory}.
@@ -6118,15 +6119,15 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6118
6119
  Do not include trees, clouds, sky, landscape, or any environmental elements.
6119
6120
  Only the building should be visible on a fully transparent background.
6120
6121
  `,
6121
- undefined,
6122
- undefined,
6123
- 1,
6124
- undefined,
6125
- undefined,
6126
- {},
6127
- account_profile_info,
6128
- );
6129
-
6122
+ undefined,
6123
+ undefined,
6124
+ 1,
6125
+ undefined,
6126
+ undefined,
6127
+ {},
6128
+ account_profile_info,
6129
+ );
6130
+ }
6130
6131
  avatar_source = 'fictional';
6131
6132
  } else {
6132
6133
  /// PERSONAL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4704",
3
+ "version": "1.1.4705",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",