@xuda.io/ai_module 1.1.4868 → 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.
Files changed (2) hide show
  1. package/index.mjs +3 -0
  2. 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
 
@@ -6194,6 +6195,8 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
6194
6195
  let transcript;
6195
6196
  try {
6196
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');
6197
6200
  }
6198
6201
 
6199
6202
  transcript = await get_transcript(file.filename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4868",
3
+ "version": "1.1.4869",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",