@xuda.io/ai_module 1.1.4797 → 1.1.4798
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 -10
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6716,10 +6716,10 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6716
6716
|
return transcript;
|
|
6717
6717
|
};
|
|
6718
6718
|
|
|
6719
|
-
let file_names = [];
|
|
6719
|
+
// let file_names = [];
|
|
6720
6720
|
let system_message_items = [];
|
|
6721
6721
|
for (const file of attachments) {
|
|
6722
|
-
file_names.push(file.filename);
|
|
6722
|
+
// file_names.push(file.filename);
|
|
6723
6723
|
let transcript;
|
|
6724
6724
|
try {
|
|
6725
6725
|
transcript = await get_transcript(file.filename);
|
|
@@ -6757,18 +6757,11 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6757
6757
|
system_message_items.push(out_conversation_item_obj);
|
|
6758
6758
|
}
|
|
6759
6759
|
|
|
6760
|
-
// const items = await client.conversations.items.create(conversation_id, {
|
|
6761
|
-
// items: system_message_items,
|
|
6762
|
-
// });
|
|
6763
|
-
|
|
6764
|
-
// console.log(items.data);
|
|
6765
|
-
|
|
6766
6760
|
conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
6767
6761
|
|
|
6768
6762
|
conversation_doc.ts = Date.now();
|
|
6769
6763
|
conversation_doc.stat = 2;
|
|
6770
|
-
|
|
6771
|
-
// s.push(obj);
|
|
6764
|
+
|
|
6772
6765
|
await db_module.save_app_couch_doc_native(app_id, conversation_doc);
|
|
6773
6766
|
return system_message_items;
|
|
6774
6767
|
};
|