@xuda.io/ai_module 1.1.4466 → 1.1.4468

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 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2751,7 +2751,7 @@ export const delete_mini_app = async function (req) {
2751
2751
  export const update_ai_agent = async function (req, job_id, headers) {
2752
2752
  let { agent_id, agentConfig, uid } = req;
2753
2753
 
2754
- const app_id = await account_module.get_account_default_project_id(uid);
2754
+ // const app_id = await account_module.get_account_default_project_id(uid);
2755
2755
 
2756
2756
  const account_profile_info = await account_module.get_active_account_profile_info(uid);
2757
2757
 
@@ -2962,7 +2962,9 @@ export const get_apps = async function (req, job_id, headers) {
2962
2962
  // };
2963
2963
 
2964
2964
  const upload_agent_files = async function (uid, agent_doc) {
2965
- let { agentConfig, account_profile_info } = agent_doc;
2965
+ const account_profile_info = await account_module.get_active_account_profile_info(uid);
2966
+
2967
+ let { agentConfig } = agent_doc;
2966
2968
  for await (let tool of agentConfig.agent_tools || []) {
2967
2969
  if (tool.type === 'file_search') {
2968
2970
  if (!_.isEmpty(tool.file)) {
@@ -6174,7 +6176,7 @@ export const create_mini_app = async function (req, job_id, headers) {
6174
6176
  const param = { uid, properties: { menuName: prompt, menuTitle: prompt, menuType: 'component' }, checkedInUserName: account_info.first_name + ' ' + account_info.last_name, app_id, parentId: 'programs' };
6175
6177
  let component_doc = createDoc(param);
6176
6178
  component_doc.studio_meta.miniApp = true;
6177
- component_doc.studio_meta.account_profiles[account_profile_obj._id];
6179
+ component_doc.studio_meta.account_profiles = [account_profile_obj._id];
6178
6180
  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);
6179
6181
  component_doc.properties.menuName = name.data;
6180
6182
  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.4466",
3
+ "version": "1.1.4468",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",