@xuda.io/ai_module 1.1.4700 → 1.1.4702

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 +9 -10
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6018,7 +6018,8 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6018
6018
  imageBase64 = Buffer.from(await image_blob_ret.image_blob.arrayBuffer()).toString('base64');
6019
6019
  if (account_type === 'business') {
6020
6020
  // create avatar from logo - BUSINESS
6021
- const { bio, country, mainCategory, subCategory } = metadata;
6021
+ const { bio, country, mainCategory, subCategory } = metadata.business_info;
6022
+ const { is_real_person } = metadata.account_type_info;
6022
6023
 
6023
6024
  // const obj = {
6024
6025
  // free: {
@@ -6111,15 +6112,13 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6111
6112
  imageBase64 = await create_image(
6112
6113
  uid,
6113
6114
  `
6114
-
6115
- Create a transparent PNG profile image depicting ${obj?.[business_size]}.
6116
- The building’s architecture, materials, and overall atmosphere must reflect the business nature,
6117
- aligned with ${mainCategory} and ${subCategory}.
6118
- Completely remove the background.
6119
- Do not include trees, clouds, sky, landscape, or any environmental elements.
6120
- Only the building should be visible on a fully transparent background.
6121
-
6122
- `,
6115
+ Create a transparent PNG profile image depicting ${obj?.[business_size]}.
6116
+ The building’s architecture, materials, and overall atmosphere must reflect the business nature,
6117
+ aligned with ${mainCategory} and ${subCategory}.
6118
+ Completely remove the background.
6119
+ Do not include trees, clouds, sky, landscape, or any environmental elements.
6120
+ Only the building should be visible on a fully transparent background.
6121
+ `,
6123
6122
  undefined,
6124
6123
  undefined,
6125
6124
  1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4700",
3
+ "version": "1.1.4702",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",