@xuda.io/ai_module 1.1.4734 → 1.1.4736
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 -0
- 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
|
|
|
@@ -4628,6 +4629,7 @@ const chat_note = async function (req, job_id, headers) {
|
|
|
4628
4629
|
direction: 'out',
|
|
4629
4630
|
role: 'user',
|
|
4630
4631
|
read: { [uid]: Date.now() },
|
|
4632
|
+
rtl: _common.detectRTL(body),
|
|
4631
4633
|
};
|
|
4632
4634
|
|
|
4633
4635
|
const save_ret = await db_module.save_app_couch_doc(sender_app_id, out_conversation_item_obj);
|
|
@@ -4748,6 +4750,7 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
4748
4750
|
email_id,
|
|
4749
4751
|
subject,
|
|
4750
4752
|
last_email_item_id: last_email_item?._id,
|
|
4753
|
+
rtl: _common.detectRTL(body),
|
|
4751
4754
|
};
|
|
4752
4755
|
|
|
4753
4756
|
const save_ret = await db_module.save_app_couch_doc(sender_app_id, out_conversation_item_obj);
|