@xuda.io/ai_module 1.1.4465 → 1.1.4467

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 -2
  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)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4465",
3
+ "version": "1.1.4467",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",