@xuda.io/ai_module 1.1.4401 → 1.1.4403

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 +6 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1889,11 +1889,11 @@ export const get_ai_chats = async function (req, job_id, headers) {
1889
1889
  if (!msg.read) doc.notifications++;
1890
1890
  }
1891
1891
 
1892
- if (!doc.chat_image && (!doc.thumbnail_request_ts || Date.now() - doc.thumbnail_request_ts > 120000)) {
1893
- if (headers) {
1894
- update_thumbnail('conversation', doc, account_profile_info.app_id, uid, job_id, headers, null, null, account_profile_info);
1895
- }
1896
- }
1892
+ // if (!doc.chat_image && (!doc.thumbnail_request_ts || Date.now() - doc.thumbnail_request_ts > 120000)) {
1893
+ // if (headers) {
1894
+ // update_thumbnail('conversation', doc, account_profile_info.app_id, uid, job_id, headers, null, null, account_profile_info);
1895
+ // }
1896
+ // }
1897
1897
 
1898
1898
  doc.user_contact = await account_module.get_user_card(uid, doc.uid);
1899
1899
 
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4401",
3
+ "version": "1.1.4403",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",