@xuda.io/ai_module 1.1.4790 → 1.1.4792

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 +3 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5992,6 +5992,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
5992
5992
  const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
5993
5993
  const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
5994
5994
  const { is_user } = metadata;
5995
+ let filename;
5995
5996
  const detect_real_person_in_image = async function (base64) {
5996
5997
  const ret = await submit_chat_gpt_prompt({
5997
5998
  uid,
@@ -6132,6 +6133,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6132
6133
  if (is_user) {
6133
6134
  if (business_has_person) {
6134
6135
  } else {
6136
+ filename = `${mainCategory}_${subCategory}`;
6135
6137
  const ai_avatar_response = await client.images.edit({
6136
6138
  model,
6137
6139
  image: image_blob_ret.image_blob, //logo
@@ -6353,6 +6355,7 @@ export const conversation_actions = async function (req, job_id, headers) {
6353
6355
  // };
6354
6356
 
6355
6357
  export const modify_profile_avatar = async function (req, job_id, headers) {
6358
+ // the function modify human avatar
6356
6359
  const { methods = [], docType, uid, url, _id, name, account_type } = req;
6357
6360
  let { metadata } = req;
6358
6361
  const account_profile_info = await account_module.get_active_account_profile_info(uid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4790",
3
+ "version": "1.1.4792",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",