@xuda.io/ai_module 1.1.4213 → 1.1.4214

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 +5 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1771,7 +1771,8 @@ 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 = 1;
1775
+ //"udfData.data.category": {"$in": ["electronics", "books"]},
1775
1776
  }
1776
1777
 
1777
1778
  switch (filter_type) {
@@ -3147,7 +3148,7 @@ export const create_ai_agent = async function (req, job_id, headers) {
3147
3148
  agent_doc.studio_meta.agent_tags = agentConfig.agent_tags;
3148
3149
  agent_doc.studio_meta.agent_user_guide = agentConfig.agent_user_guide;
3149
3150
  // agent_doc.studio_meta.account_profile_info = account_profile_info;
3150
- agent_doc.studio_meta.account_profiles[account_profile_obj];
3151
+ agent_doc.studio_meta.account_profiles[account_profile_obj._id];
3151
3152
 
3152
3153
  // const data = await db.insert(agent_doc);
3153
3154
 
@@ -4163,7 +4164,7 @@ export const create_conversation = async function (req, job_id, headers) {
4163
4164
  conversation_type,
4164
4165
  initiator_uid: uid,
4165
4166
 
4166
- account_profiles: [account_profile_obj],
4167
+ account_profiles: [account_profile_obj._id],
4167
4168
  };
4168
4169
  const save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_doc);
4169
4170
 
@@ -6358,7 +6359,7 @@ export const create_mini_app = async function (req, job_id, headers) {
6358
6359
  const param = { uid, properties: { menuName: prompt, menuTitle: prompt, menuType: 'component' }, checkedInUserName: account_info.first_name + ' ' + account_info.last_name, app_id, parentId: 'programs' };
6359
6360
  let component_doc = createDoc(param);
6360
6361
  component_doc.studio_meta.miniApp = true;
6361
- component_doc.studio_meta.account_profiles[account_profile_obj];
6362
+ component_doc.studio_meta.account_profiles[account_profile_obj._id];
6362
6363
  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
6364
  component_doc.properties.menuName = name.data;
6364
6365
  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.4214",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",