@xuda.io/ai_module 1.1.5098 → 1.1.5100
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1418,7 +1418,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1418
1418
|
let ai_chats = { docs: [], total_docs: 0 };
|
|
1419
1419
|
|
|
1420
1420
|
if (filter_type !== 'pending') {
|
|
1421
|
-
if (reference_id && reference_type === 'contacts') {
|
|
1421
|
+
if (reference_id && (reference_type === 'contacts' || reference_type === 'account_profiles')) {
|
|
1422
1422
|
ai_chats = await get_data_view_conversation_items();
|
|
1423
1423
|
} else {
|
|
1424
1424
|
ai_chats = await get_data_find();
|
|
@@ -10853,3 +10853,5 @@ export const open_ai_alive_check = async function () {};
|
|
|
10853
10853
|
|
|
10854
10854
|
// return account_profile_info;
|
|
10855
10855
|
// };
|
|
10856
|
+
|
|
10857
|
+
const get_suggestions = async function (uid, ai_agents, ai_model = _conf.default_ai_model) {};
|