@xuda.io/ai_module 1.1.4400 → 1.1.4402

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 +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3363,6 +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, db_doc.chat_image[0].image_url, { tags });
3366
3367
  break;
3367
3368
  }
3368
3369
 
@@ -5694,7 +5695,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
5694
5695
  const tempDir = os.tmpdir();
5695
5696
  const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
5696
5697
  const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
5697
- debugger;
5698
+
5698
5699
  const detect_real_person_in_image = async function (base64) {
5699
5700
  const ret = await submit_chat_gpt_prompt({
5700
5701
  uid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4400",
3
+ "version": "1.1.4402",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",