@xuda.io/ai_module 1.1.4216 → 1.1.4218
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 +4 -6
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1713,9 +1713,9 @@ export const get_chat_conversation = async function (req) {
|
|
|
1713
1713
|
};
|
|
1714
1714
|
|
|
1715
1715
|
export const get_ai_chats = async function (req, job_id, headers) {
|
|
1716
|
-
let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip, conversation_id } = req;
|
|
1716
|
+
let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip, conversation_id, profile_id } = req;
|
|
1717
1717
|
|
|
1718
|
-
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
1718
|
+
const account_profile_info = await account_module.get_active_account_profile_info(uid, profile_id);
|
|
1719
1719
|
|
|
1720
1720
|
const get_conversation_background = function (doc) {
|
|
1721
1721
|
let deg = 145;
|
|
@@ -2393,8 +2393,8 @@ const get_user_ai_agents = async function (uid) {
|
|
|
2393
2393
|
};
|
|
2394
2394
|
|
|
2395
2395
|
export const get_ai_agents = async function (req, job_id, headers) {
|
|
2396
|
-
let { uid, _id, search, filter_type = 'all', limit, skip, agent_id } = req;
|
|
2397
|
-
|
|
2396
|
+
let { uid, _id, search, filter_type = 'all', limit, skip, agent_id, profile_id } = req;
|
|
2397
|
+
const account_profile_info = await account_module.get_active_account_profile_info(uid, profile_id);
|
|
2398
2398
|
try {
|
|
2399
2399
|
if (_id) {
|
|
2400
2400
|
let doc_ret = await get_studio_doc({ _id, uid });
|
|
@@ -2474,8 +2474,6 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2474
2474
|
}
|
|
2475
2475
|
//////////////
|
|
2476
2476
|
|
|
2477
|
-
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
2478
|
-
|
|
2479
2477
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
2480
2478
|
|
|
2481
2479
|
let user_agents = { docs: [], total_docs: 0 };
|