@xuda.io/ai_module 1.1.4867 → 1.1.4869
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 +6 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3442,6 +3442,7 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
3442
3442
|
prompt,
|
|
3443
3443
|
rtl: _common.detectRTL(prompt),
|
|
3444
3444
|
process_stat: perform_ai_execution ? 'full' : 'partial',
|
|
3445
|
+
from_mailbox,
|
|
3445
3446
|
};
|
|
3446
3447
|
const save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_doc);
|
|
3447
3448
|
|
|
@@ -6193,6 +6194,11 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6193
6194
|
// file_names.push(file.filename);
|
|
6194
6195
|
let transcript;
|
|
6195
6196
|
try {
|
|
6197
|
+
if (conversation_doc.reference_type === 'contacts' && conversation_doc.conversation_type === 'email') {
|
|
6198
|
+
let contact_doc = await account_module.get_contact(uid, conversation_doc.reference_id);
|
|
6199
|
+
if (!contact_doc.deep_research) throw new Error('deep research not set');
|
|
6200
|
+
}
|
|
6201
|
+
|
|
6196
6202
|
transcript = await get_transcript(file.filename);
|
|
6197
6203
|
} catch (error) {
|
|
6198
6204
|
process_stat = 'partial';
|