@xuda.io/ai_module 1.1.4677 → 1.1.4679
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4226,7 +4226,7 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
4226
4226
|
|
|
4227
4227
|
setTimeout(async () => {
|
|
4228
4228
|
if (perform_ai_execution) {
|
|
4229
|
-
process_conversation(uid, conversation_doc._id, account_profile_info, job_id, headers);
|
|
4229
|
+
await process_conversation(uid, conversation_doc._id, account_profile_info, job_id, headers);
|
|
4230
4230
|
}
|
|
4231
4231
|
// // Ask GPT for title
|
|
4232
4232
|
// if (conversation_type !== 'email') {
|
|
@@ -6731,6 +6731,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6731
6731
|
role: 'user',
|
|
6732
6732
|
conversation_item_reference_id: items.last_id,
|
|
6733
6733
|
file,
|
|
6734
|
+
read: { [uid]: Date.now() },
|
|
6734
6735
|
};
|
|
6735
6736
|
await db_module.save_app_couch_doc_native(account_profile_info.app_id, out_conversation_item_obj);
|
|
6736
6737
|
system_message_items.push(out_conversation_item_obj);
|