@xuda.io/ai_module 1.1.4592 → 1.1.4594
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6331,6 +6331,7 @@ export const unpin_ai_agent = async function (req, job_id, headers) {
|
|
|
6331
6331
|
|
|
6332
6332
|
const attachment_handler = async function (uid, app_id, conversation_id, attachments, account_profile_info) {
|
|
6333
6333
|
if (!attachments?.length) return;
|
|
6334
|
+
let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
6334
6335
|
|
|
6335
6336
|
const get_transcript = async function (filename) {
|
|
6336
6337
|
async function streamToBuffer(fileStream) {
|
|
@@ -6483,6 +6484,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6483
6484
|
conversation_item_reference_id: items.last_id,
|
|
6484
6485
|
};
|
|
6485
6486
|
await db_module.save_app_couch_doc_native(account_profile_info.app_id, out_conversation_item_obj);
|
|
6487
|
+
system_message_items.push(out_conversation_item_obj);
|
|
6486
6488
|
}
|
|
6487
6489
|
|
|
6488
6490
|
// const items = await client.conversations.items.create(conversation_id, {
|
|
@@ -6491,7 +6493,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6491
6493
|
|
|
6492
6494
|
// console.log(items.data);
|
|
6493
6495
|
|
|
6494
|
-
|
|
6496
|
+
conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
6495
6497
|
|
|
6496
6498
|
conversation_doc.ts = Date.now();
|
|
6497
6499
|
conversation_doc.stat = 2;
|