@xuda.io/ai_module 1.1.4880 → 1.1.4882
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
|
@@ -3393,7 +3393,7 @@ function getFirstNWords(text, n = 10) {
|
|
|
3393
3393
|
|
|
3394
3394
|
export const create_conversation = async function (req, job_id, headers) {
|
|
3395
3395
|
const { profile_id, uid, prompt, perform_ai_execution = true, email_id, email_direction = 'out', from_mailbox, date_created } = req;
|
|
3396
|
-
let { reference_type, reference_id = '', conversation_type } = req;
|
|
3396
|
+
let { reference_type, reference_id = '', conversation_type, email_recipient_type } = req;
|
|
3397
3397
|
|
|
3398
3398
|
const account_profile_info = await account_module.get_active_account_profile_info(uid, profile_id);
|
|
3399
3399
|
const { account_profile_obj } = account_profile_info;
|
|
@@ -3443,6 +3443,7 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
3443
3443
|
rtl: _common.detectRTL(prompt),
|
|
3444
3444
|
process_stat: perform_ai_execution ? 'full' : 'partial',
|
|
3445
3445
|
from_mailbox,
|
|
3446
|
+
email_recipient_type,
|
|
3446
3447
|
};
|
|
3447
3448
|
const save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_doc);
|
|
3448
3449
|
|