@xuda.io/ai_module 1.1.4213 → 1.1.4215

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.
Files changed (2) hide show
  1. package/index.mjs +4 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1771,7 +1771,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1771
1771
  };
1772
1772
  debugger;
1773
1773
  if (!account_profile_info.is_main) {
1774
- opt.selector = 1;
1774
+ opt.selector.account_profiles = { $in: [account_profile_info.account_profile_id] };
1775
1775
  }
1776
1776
 
1777
1777
  switch (filter_type) {
@@ -3147,7 +3147,7 @@ export const create_ai_agent = async function (req, job_id, headers) {
3147
3147
  agent_doc.studio_meta.agent_tags = agentConfig.agent_tags;
3148
3148
  agent_doc.studio_meta.agent_user_guide = agentConfig.agent_user_guide;
3149
3149
  // agent_doc.studio_meta.account_profile_info = account_profile_info;
3150
- agent_doc.studio_meta.account_profiles[account_profile_obj];
3150
+ agent_doc.studio_meta.account_profiles[account_profile_obj._id];
3151
3151
 
3152
3152
  // const data = await db.insert(agent_doc);
3153
3153
 
@@ -4163,7 +4163,7 @@ export const create_conversation = async function (req, job_id, headers) {
4163
4163
  conversation_type,
4164
4164
  initiator_uid: uid,
4165
4165
 
4166
- account_profiles: [account_profile_obj],
4166
+ account_profiles: [account_profile_obj._id],
4167
4167
  };
4168
4168
  const save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_doc);
4169
4169
 
@@ -6358,7 +6358,7 @@ export const create_mini_app = async function (req, job_id, headers) {
6358
6358
  const param = { uid, properties: { menuName: prompt, menuTitle: prompt, menuType: 'component' }, checkedInUserName: account_info.first_name + ' ' + account_info.last_name, app_id, parentId: 'programs' };
6359
6359
  let component_doc = createDoc(param);
6360
6360
  component_doc.studio_meta.miniApp = true;
6361
- component_doc.studio_meta.account_profiles[account_profile_obj];
6361
+ component_doc.studio_meta.account_profiles[account_profile_obj._id];
6362
6362
  const name = await submit_chat_gpt_prompt({ uid, prompt: `create title for the prompt return 5 words result maximum text only without options : ${prompt}`, model: 'gpt-5-nano', metadata: { prog_id: component_doc._id, func: 'create_mini_app' } }, account_profile_info);
6363
6363
  component_doc.properties.menuName = name.data;
6364
6364
  component_doc.properties.menuTitle = name.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4213",
3
+ "version": "1.1.4215",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",