@xuda.io/ai_module 1.1.4706 → 1.1.4707

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 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6018,7 +6018,7 @@ 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, is_real_person } = metadata;
6021
+ const { bio, country, mainCategory, subCategory, is_real_person, name, person_nationality } = metadata;
6022
6022
 
6023
6023
  // const obj = {
6024
6024
  // free: {
@@ -6111,9 +6111,10 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6111
6111
  imageBase64 = await create_image(
6112
6112
  uid,
6113
6113
  `
6114
- analyze the the person info : {"name": "${doc?.name || ''}", "accept-language": "${doc?.headers?.['accept-language'] || ''}", "context": "${
6115
- doc?.context || ''
6116
- }"} and create realistic fictional profile picture transparent background ,person in the center of the picture add top margin the person should cover the whole picture
6114
+ analyze the the person info : name:${name || ''}, person_nationality: ${person_nationality}
6115
+ and create realistic fictional profile picture
6116
+ transparent background ,person in the center of the picture
6117
+ add top margin the person should cover the whole picture
6117
6118
 
6118
6119
  `,
6119
6120
  undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4706",
3
+ "version": "1.1.4707",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",