@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.
- package/index.mjs +3 -0
- 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
|
};
|