@xuda.io/ai_module 1.1.4860 → 1.1.4862
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3518,7 +3518,7 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
3518
3518
|
}
|
|
3519
3519
|
};
|
|
3520
3520
|
|
|
3521
|
-
|
|
3521
|
+
const process_conversation = async function (uid, conversation_id, account_profile_info, job_id, headers) {
|
|
3522
3522
|
let conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_id);
|
|
3523
3523
|
const { conversation_type, prompt, reference_id } = conversation_doc;
|
|
3524
3524
|
|
|
@@ -3654,7 +3654,7 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
|
|
|
3654
3654
|
}
|
|
3655
3655
|
};
|
|
3656
3656
|
|
|
3657
|
-
|
|
3657
|
+
const update_conversation_mood_level = async function (uid, target_contacts = [], conversation_id, prompt, sender_uid, receiver_uid, update_contact, account_profile_info) {
|
|
3658
3658
|
try {
|
|
3659
3659
|
// analyze the mood of the conversation
|
|
3660
3660
|
const mood_level = await submit_chat_gpt_prompt({
|
|
@@ -3871,7 +3871,7 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
3871
3871
|
} else {
|
|
3872
3872
|
subject = 'Re: ' + last_email_item?.subject;
|
|
3873
3873
|
}
|
|
3874
|
-
|
|
3874
|
+
|
|
3875
3875
|
let email_attachments = [];
|
|
3876
3876
|
for (const attachment of attachments) {
|
|
3877
3877
|
email_attachments.push(await save_drive_file_to_disk(attachment));
|