@xuda.io/ai_module 1.1.4736 → 1.1.4737

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6040,7 +6040,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6040
6040
  imageBase64 = Buffer.from(await image_blob_ret.image_blob.arrayBuffer()).toString('base64');
6041
6041
  if (account_type === 'business') {
6042
6042
  // create avatar from logo - BUSINESS
6043
- const { bio, country, mainCategory, subCategory, is_real_person, name, person_nationality } = metadata;
6043
+ const { bio, country, mainCategory, subCategory, business_has_person, name, person_nationality } = metadata;
6044
6044
 
6045
6045
  // const obj = {
6046
6046
  // free: {
@@ -6129,7 +6129,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6129
6129
  // });
6130
6130
  // 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);
6131
6131
  // imageBase64 = ai_avatar_response.data[0].b64_json;
6132
- if (is_real_person) {
6132
+ if (business_has_person) {
6133
6133
  imageBase64 = await create_image(
6134
6134
  uid,
6135
6135
  `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4736",
3
+ "version": "1.1.4737",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",