@xuda.io/ai_module 1.1.4171 → 1.1.4172
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4422,7 +4422,7 @@ const chat_note = async function (req, job_id, headers) {
|
|
|
4422
4422
|
const sender_app_id = conversation_doc.account_profile_info.app_id; //await account_module.get_account_default_project_id(uid);
|
|
4423
4423
|
let sender_conversation_doc = await db_module.get_app_couch_doc_native(sender_app_id, conversation_id);
|
|
4424
4424
|
|
|
4425
|
-
await attachment_handler(uid, sender_app_id, conversation_id, attachments);
|
|
4425
|
+
await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info);
|
|
4426
4426
|
|
|
4427
4427
|
const item = await client.conversations.items.create(conversation_id, {
|
|
4428
4428
|
items: [
|
|
@@ -5016,7 +5016,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
5016
5016
|
/////////////
|
|
5017
5017
|
if (attachments?.length) {
|
|
5018
5018
|
await update_job('analyzing attachments');
|
|
5019
|
-
await attachment_handler(uid, app_id, conversation_id, attachments);
|
|
5019
|
+
await attachment_handler(uid, app_id, conversation_id, attachments, account_profile_info);
|
|
5020
5020
|
}
|
|
5021
5021
|
////////////
|
|
5022
5022
|
|
|
@@ -6402,7 +6402,7 @@ export const unpin_ai_agent = async function (req, job_id, headers) {
|
|
|
6402
6402
|
}
|
|
6403
6403
|
};
|
|
6404
6404
|
|
|
6405
|
-
const attachment_handler = async function (uid, app_id, conversation_id, attachments) {
|
|
6405
|
+
const attachment_handler = async function (uid, app_id, conversation_id, attachments, account_profile_info) {
|
|
6406
6406
|
if (!attachments?.length) return;
|
|
6407
6407
|
|
|
6408
6408
|
const get_transcript = async function (filename) {
|