@xuda.io/ai_module 1.1.4736 → 1.1.4738
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.
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5594,7 +5594,7 @@ setTimeout(async () => {
|
|
|
5594
5594
|
// account_profile_info,
|
|
5595
5595
|
// );
|
|
5596
5596
|
|
|
5597
|
-
|
|
5597
|
+
ret = await get_business_info(uid, '', 'bsdgarage@gmail.com', account_profile_info);
|
|
5598
5598
|
// ret = await get_business_info(uid, '', 'eden.ioshka@gmail.com', account_profile_info);
|
|
5599
5599
|
// ret = await get_person_info(uid, 'lidan ben shlush', 'dan@locksmith-star.com', account_profile_info);
|
|
5600
5600
|
// debugger;
|
|
@@ -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,
|
|
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 (
|
|
6132
|
+
if (business_has_person) {
|
|
6133
6133
|
imageBase64 = await create_image(
|
|
6134
6134
|
uid,
|
|
6135
6135
|
`
|