@xuda.io/ai_module 1.1.4156 → 1.1.4157

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
@@ -1899,7 +1899,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1899
1899
 
1900
1900
  if (!doc.chat_image && (!doc.thumbnail_request_ts || Date.now() - doc.thumbnail_request_ts > 120000)) {
1901
1901
  if (headers) {
1902
- update_thumbnail('conversation', doc, account_profile_info.app_id, uid, job_id, headers);
1902
+ update_thumbnail('conversation', doc, account_profile_info.app_id, uid, job_id, headers, null, null, account_profile_info);
1903
1903
  }
1904
1904
  }
1905
1905
 
@@ -2766,7 +2766,7 @@ export const update_ai_agent = async function (req, job_id, headers) {
2766
2766
  setTimeout(async () => {
2767
2767
  await update_ai_agent_properties(agent_doc, account_profile_info.app_id, uid, { name_changed, agent_user_guide_changed, agent_category_changed, agent_subcategory_changed, agent_instructions_changed });
2768
2768
  if (name_changed) {
2769
- await update_thumbnail('ai_agent', agent_doc, account_profile_info.app_id, uid, job_id, headers);
2769
+ await update_thumbnail('ai_agent', agent_doc, account_profile_info.app_id, uid, job_id, headers, null, null, account_profile_info);
2770
2770
  }
2771
2771
  }, 500);
2772
2772
 
@@ -3121,7 +3121,7 @@ export const create_ai_agent = async function (req, job_id, headers) {
3121
3121
  const account_profile_info = await account_module.get_active_account_profile_info(uid);
3122
3122
 
3123
3123
  try {
3124
- const param = { uid, properties: { menuName: agentConfig.agent_name, menuTitle: agentConfig.agent_name, menuType: 'ai_agent' }, checkedInUserName: account_info.first_name + ' ' + account_info.last_name, app_id, parentId: 'ai_agents' };
3124
+ const param = { uid, properties: { menuName: agentConfig.agent_name, menuTitle: agentConfig.agent_name, menuType: 'ai_agent' }, checkedInUserName: account_info.first_name + ' ' + account_info.last_name, app_id: account_profile_info.app_id, parentId: 'ai_agents' };
3125
3125
  var agent_doc = createDoc(param);
3126
3126
  agent_doc.agentConfig = agentConfig;
3127
3127
 
@@ -3136,7 +3136,7 @@ export const create_ai_agent = async function (req, job_id, headers) {
3136
3136
  const data = await db_module.save_app_couch_doc_native(account_profile_info.app_id, agent_doc);
3137
3137
  setTimeout(async () => {
3138
3138
  await update_ai_agent_properties(agent_doc, account_profile_info.app_id, uid);
3139
- await update_thumbnail('ai_agent', agent_doc, account_profile_info.app_id, uid, job_id, headers);
3139
+ await update_thumbnail('ai_agent', agent_doc, account_profile_info.app_id, uid, job_id, headers, null, null, account_profile_info);
3140
3140
  }, 500);
3141
3141
 
3142
3142
  upload_agent_files(uid, agent_doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4156",
3
+ "version": "1.1.4157",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",