@xuda.io/ai_module 1.1.4698 → 1.1.4699

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 +36 -10
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6090,11 +6090,29 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6090
6090
  // background: 'transparent',
6091
6091
  // });
6092
6092
 
6093
- const ai_avatar_response = await client.images.edit({
6094
- model,
6095
- image: image_blob_ret.image_blob, //logo
6096
- prompt: `
6097
- Create a transparent PNG profile image for a business account featuring building branded as ${name}.
6093
+ // const ai_avatar_response = await client.images.edit({
6094
+ // model,
6095
+ // image: image_blob_ret.image_blob, //logo
6096
+ // prompt: `
6097
+ // Create a transparent PNG profile image for a business account featuring building branded as ${name}.
6098
+ // Display the attached logo clearly as prominent exterior signage.
6099
+
6100
+ // show ${obj?.[business_size] || 'office building'}
6101
+ // The building’s architecture and overall atmosphere should reflect the nature of the business,
6102
+ // aligning with ${mainCategory} and ${subCategory}.
6103
+
6104
+ // Use the provided bio (${bio}) to understand the company’s focus and personality, and adapt the architectural style to match the ${country} country’s local design language. Select an appropriate building type for the specific business category, and present a contemporary, creative office environment with a strong, recognizable brand identity.
6105
+ // The background should be fully removed, remove trees,clouds,sky or any landscape objects`,
6106
+ // background: 'transparent',
6107
+ // });
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
+ // imageBase64 = ai_avatar_response.data[0].b64_json;
6110
+
6111
+ imageBase64 = await create_image(
6112
+ uid,
6113
+ `
6114
+
6115
+ Create a transparent PNG profile image for a business account featuring building branded as ${name}.
6098
6116
  Display the attached logo clearly as prominent exterior signage.
6099
6117
 
6100
6118
  show ${obj?.[business_size] || 'office building'}
@@ -6102,11 +6120,19 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6102
6120
  aligning with ${mainCategory} and ${subCategory}.
6103
6121
 
6104
6122
  Use the provided bio (${bio}) to understand the company’s focus and personality, and adapt the architectural style to match the ${country} country’s local design language. Select an appropriate building type for the specific business category, and present a contemporary, creative office environment with a strong, recognizable brand identity.
6105
- The background should be fully removed, remove trees,clouds,sky or any landscape objects`,
6106
- background: 'transparent',
6107
- });
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
- imageBase64 = ai_avatar_response.data[0].b64_json;
6123
+ The background should be fully removed, remove trees,clouds,sky or any landscape objects
6124
+
6125
+
6126
+ `,
6127
+ undefined,
6128
+ undefined,
6129
+ 1,
6130
+ undefined,
6131
+ undefined,
6132
+ {},
6133
+ account_profile_info,
6134
+ );
6135
+
6110
6136
  avatar_source = 'fictional';
6111
6137
  } else {
6112
6138
  /// PERSONAL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4698",
3
+ "version": "1.1.4699",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",