@xuda.io/ai_module 1.1.4590 → 1.1.4592

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 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6461,10 +6461,10 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
6461
6461
  ],
6462
6462
  });
6463
6463
 
6464
- const obj = { id: items.last_id, ts: Date.now(), conversation_type: 'attachment', file };
6465
- system_message_items.push(obj);
6464
+ // const obj = { id: items.last_id, ts: Date.now(), conversation_type: 'attachment', file };
6465
+ // system_message_items.push(obj);
6466
6466
 
6467
- await db_module.save_app_couch_doc_native(account_profile_info.app_id, { _id: obj.id, stat: 3, docType: 'chat_conversation_item', ts: obj.ts, uid, conversation_type: obj.conversation_type, date_created_ts: obj.ts, conversation_id, file, transcript, reference_id: conversation_doc.reference_id });
6467
+ // await db_module.save_app_couch_doc_native(account_profile_info.app_id, { _id: obj.id, stat: 3, docType: 'chat_conversation_item', ts: obj.ts, uid, conversation_type: obj.conversation_type, date_created_ts: obj.ts, conversation_id, file, transcript, reference_id: conversation_doc.reference_id });
6468
6468
  ///////////////
6469
6469
  let out_conversation_item_obj = {
6470
6470
  _id: await _common.xuda_get_uuid('chat_conversation_item'),
@@ -6480,6 +6480,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
6480
6480
  reference_id: conversation_doc.reference_id,
6481
6481
  direction: 'out',
6482
6482
  role: 'user',
6483
+ conversation_item_reference_id: items.last_id,
6483
6484
  };
6484
6485
  await db_module.save_app_couch_doc_native(account_profile_info.app_id, out_conversation_item_obj);
6485
6486
  }
@@ -6494,7 +6495,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
6494
6495
 
6495
6496
  conversation_doc.ts = Date.now();
6496
6497
  conversation_doc.stat = 2;
6497
- conversation_doc.messages = [...conversation_doc.messages, ...system_message_items];
6498
+ // conversation_doc.messages = [...conversation_doc.messages, ...system_message_items];
6498
6499
  // s.push(obj);
6499
6500
  await db_module.save_app_couch_doc_native(app_id, conversation_doc);
6500
6501
  return system_message_items;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4590",
3
+ "version": "1.1.4592",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",