@xuda.io/ai_module 1.1.5069 → 1.1.5071
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
|
@@ -1187,8 +1187,8 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1187
1187
|
group_level: 999, //2,
|
|
1188
1188
|
// key: [uid, contact_id, conversation_id],
|
|
1189
1189
|
|
|
1190
|
-
startkey: [uid,
|
|
1191
|
-
endkey: [uid,
|
|
1190
|
+
startkey: [uid, contact_id, ''],
|
|
1191
|
+
endkey: [uid, contact_id, 'zzzzzz'],
|
|
1192
1192
|
});
|
|
1193
1193
|
|
|
1194
1194
|
return counts_ret?.rows?.[0]?.value || 0;
|
|
@@ -3813,7 +3813,7 @@ const contact_chat_conversation = async function (req, job_id, headers) {
|
|
|
3813
3813
|
|
|
3814
3814
|
update_conversation_mood_level(uid, conversation_id, prompt, uid, receiver_contact_doc.contact_uid, conversation_doc.reference_type === 'contacts', account_profile_info);
|
|
3815
3815
|
|
|
3816
|
-
return { code: 15, data: item };
|
|
3816
|
+
return { code: 15, data: save_ret//item };
|
|
3817
3817
|
};
|
|
3818
3818
|
|
|
3819
3819
|
const chat_note = async function (req, job_id, headers) {
|