@xuda.io/ai_module 1.1.4027 → 1.1.4029

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 +3 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4384,6 +4384,8 @@ const chat_note = async function (req, job_id, headers) {
4384
4384
  const sender_app_id = await account_module.get_account_default_project_id(uid);
4385
4385
  let sender_conversation_doc = await db_module.get_app_couch_doc_native(sender_app_id, conversation_id);
4386
4386
 
4387
+ await attachment_handler(uid, sender_app_id, conversation_id, attachments);
4388
+
4387
4389
  const item = await client.conversations.items.create(conversation_id, {
4388
4390
  items: [
4389
4391
  {
@@ -6437,4 +6439,5 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
6437
6439
  conversation_doc.messages = [...conversation_doc.messages, ...system_message_items];
6438
6440
  // s.push(obj);
6439
6441
  await db_module.save_app_couch_doc_native(app_id, conversation_doc);
6442
+ return system_message_items;
6440
6443
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4027",
3
+ "version": "1.1.4029",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",