@xuda.io/ai_module 1.1.4408 → 1.1.4410
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 +27 -27
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3363,7 +3363,7 @@ export const update_thumbnail = async function (type, doc, app_id, uid, job_id,
|
|
|
3363
3363
|
db_doc = await get_db_doc();
|
|
3364
3364
|
db_doc.thumbnail_request_ts = Date.now();
|
|
3365
3365
|
db_doc.chat_image = images_arr;
|
|
3366
|
-
account_module.save_picture_cache(uid, 'chat_thumbnail', prompt.substr(14), db_doc.chat_image[0]
|
|
3366
|
+
account_module.save_picture_cache(uid, 'chat_thumbnail', prompt.substr(14), db_doc.chat_image[0], { tags });
|
|
3367
3367
|
break;
|
|
3368
3368
|
}
|
|
3369
3369
|
|
|
@@ -3378,37 +3378,37 @@ export const update_thumbnail = async function (type, doc, app_id, uid, job_id,
|
|
|
3378
3378
|
break;
|
|
3379
3379
|
}
|
|
3380
3380
|
|
|
3381
|
-
case 'contact': {
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3381
|
+
// case 'contact': {
|
|
3382
|
+
// await update_profile_avatar_status(doc._id, 2);
|
|
3383
|
+
// prompt = `analyze the the person info : {"name": "${doc?.name || ''}", "accept-language": "${doc?.headers?.['accept-language'] || ''}", "context": "${
|
|
3384
|
+
// doc?.context || ''
|
|
3385
|
+
// }"} 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`;
|
|
3386
3386
|
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3387
|
+
// const images_arr = await create_and_upload_image_to_drive('user', 'Profile Images', doc._id, prompt, 1, uid, app_id, job_id, headers, true, tags, account_profile_info, 1024, 1024);
|
|
3388
|
+
// await update_profile_avatar_status(doc._id, 3);
|
|
3389
|
+
// db_doc = await get_db_doc();
|
|
3390
|
+
// db_doc.image_request_ts = Date.now();
|
|
3391
|
+
// db_doc.profile_avatar = images_arr[0].file_url;
|
|
3392
|
+
// db_doc.profile_avatar_obj == images_arr[0];
|
|
3393
|
+
// db_doc.avatar_source = 'fictional';
|
|
3394
3394
|
|
|
3395
|
-
|
|
3396
|
-
}
|
|
3395
|
+
// break;
|
|
3396
|
+
// }
|
|
3397
3397
|
|
|
3398
|
-
case 'account': {
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3398
|
+
// case 'account': {
|
|
3399
|
+
// prompt = `analyze the the person info : {"name": "${doc?.account_info?.first_name || ''} ${doc?.account_info?.last_name || ''}", "country": "${doc?.account_info?.country || ''}", "context": "${
|
|
3400
|
+
// doc?.context || ''
|
|
3401
|
+
// }"} 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`;
|
|
3402
3402
|
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3403
|
+
// const images_arr = await create_and_upload_image_to_drive('user', 'Profile Images', doc._id, prompt, 1, uid, app_id, job_id, headers, true, tags, account_profile_info, 1024, 1024);
|
|
3404
|
+
// db_doc = await get_db_doc();
|
|
3405
|
+
// db_doc.image_request_ts = Date.now();
|
|
3406
|
+
// db_doc.account_info.profile_avatar = images_arr[0].file_url;
|
|
3407
|
+
// db_doc.account_info.profile_avatar_obj == images_arr[0];
|
|
3408
|
+
// db_doc.account_info.avatar_source = 'fictional';
|
|
3409
3409
|
|
|
3410
|
-
|
|
3411
|
-
}
|
|
3410
|
+
// break;
|
|
3411
|
+
// }
|
|
3412
3412
|
|
|
3413
3413
|
default:
|
|
3414
3414
|
prompt = '';
|