@xuda.io/ai_module 1.1.4670 → 1.1.4672

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 +5 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3458,7 +3458,10 @@ export const update_thumbnail = async function (type, doc, app_id, uid, job_id,
3458
3458
  case 'conversation_category': {
3459
3459
  prompt = `create image: ${doc.category_info.category}`;
3460
3460
  let images_arr;
3461
- const cache = await get_chat_picture_cache(uid, 'chat_thumbnail', doc.category_info.category);
3461
+ let cache = await get_chat_picture_cache(uid, 'chat_thumbnail', doc.title);
3462
+ if (!cache) {
3463
+ cache = await get_chat_picture_cache(uid, 'chat_thumbnail', doc.category_info.category);
3464
+ }
3462
3465
  images_arr = [cache];
3463
3466
  if (!cache) {
3464
3467
  images_arr = await create_and_upload_image_to_drive('user', 'Chat Thumbnails', doc._id, prompt, 1, uid, app_id, job_id, headers, true, tags, account_profile_info);
@@ -4360,7 +4363,7 @@ const process_conversation = async function (uid, conversation_id, account_profi
4360
4363
  break;
4361
4364
  }
4362
4365
  }
4363
- debugger;
4366
+
4364
4367
  conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_doc._id);
4365
4368
  conversation_doc.category_info = category_info;
4366
4369
  await db_module.save_app_couch_doc_native(account_profile_info.app_id, conversation_doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4670",
3
+ "version": "1.1.4672",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",