@xuda.io/ai_module 1.1.4168 → 1.1.4169

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2961,7 +2961,7 @@ const upload_agent_files = async function (uid, agent_doc) {
2961
2961
  case 'audio':
2962
2962
  case 'video': {
2963
2963
  await save_agent_status(uid, agent_doc._id, 2, agentConfig);
2964
- const file_stream = await get_drive_file_stream('user', app_id, uid, tool.file.name);
2964
+ const file_stream = await get_drive_file_stream('user', agent_doc.account_profile_info.app_id, uid, tool.file.name);
2965
2965
  const transcript = await transcribe(uid, file_stream, { agent_id: agent_doc._id, func: 'upload_agent_files -' + validation_ret.category });
2966
2966
 
2967
2967
  file = new File([Buffer.from(transcript, 'utf8')], tool.file.name, {
@@ -2980,7 +2980,7 @@ const upload_agent_files = async function (uid, agent_doc) {
2980
2980
  }
2981
2981
 
2982
2982
  case 'image': {
2983
- const response = await get_drive_file_response('user', app_id, uid, tool.file.name);
2983
+ const response = await get_drive_file_response('user', agent_doc.account_profile_info.app_id, uid, tool.file.name);
2984
2984
 
2985
2985
  if (!response.ok) throw new Error(`Failed to download file: ${response.statusText}`);
2986
2986
  const arrayBuffer = await response.arrayBuffer();
@@ -3102,7 +3102,7 @@ const upload_agent_files = async function (uid, agent_doc) {
3102
3102
  // };
3103
3103
 
3104
3104
  const save_agent_status = async function (uid, agent_id, stat, agentConfig) {
3105
- const project_db = await get_account_project_db(uid);
3105
+ // const project_db = await get_account_project_db(uid);
3106
3106
  const account_profile_info = await account_module.get_active_account_profile_info(uid);
3107
3107
 
3108
3108
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4168",
3
+ "version": "1.1.4169",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",