@xuda.io/ai_module 1.1.4461 → 1.1.4462
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
|
@@ -6305,6 +6305,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6305
6305
|
},
|
|
6306
6306
|
],
|
|
6307
6307
|
metadata: { conversation_id, func: 'attachment_handler' },
|
|
6308
|
+
account_profile_info,
|
|
6308
6309
|
});
|
|
6309
6310
|
if (ret.code < 0) {
|
|
6310
6311
|
throw new Error('something went wrong try again later');
|
|
@@ -6389,7 +6390,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6389
6390
|
const obj = { id: items.last_id, ts: Date.now(), conversation_type: 'attachment', file };
|
|
6390
6391
|
system_message_items.push(obj);
|
|
6391
6392
|
|
|
6392
|
-
await db_module.save_app_couch_doc_native(
|
|
6393
|
+
await db_module.save_app_couch_doc_native(account_profile_info.app_id, { _id: obj.id, stat: 3, docType: 'chat_conversation_item', ts: obj.ts, uid, conversation_type: obj.conversation_type, date_created_ts: obj.ts, conversation_id, file, transcript });
|
|
6393
6394
|
}
|
|
6394
6395
|
|
|
6395
6396
|
// const items = await client.conversations.items.create(conversation_id, {
|