@xuda.io/ai_module 1.1.4733 → 1.1.4735
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
|
@@ -4201,6 +4201,7 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
4201
4201
|
reference_conversation_id: conversation_obj.id,
|
|
4202
4202
|
account_profiles: [account_profile_obj._id],
|
|
4203
4203
|
prompt,
|
|
4204
|
+
rtl: _common.detectRTL(prompt),
|
|
4204
4205
|
};
|
|
4205
4206
|
const save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_doc);
|
|
4206
4207
|
|
|
@@ -4666,7 +4667,7 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
4666
4667
|
}
|
|
4667
4668
|
let sent_email_result = {};
|
|
4668
4669
|
let last_email_item;
|
|
4669
|
-
let subject =
|
|
4670
|
+
let subject = conversation_doc.subject;
|
|
4670
4671
|
// send an email by user invocation
|
|
4671
4672
|
if (!from_mailbox) {
|
|
4672
4673
|
// get last email
|