@xuda.io/ai_module 1.1.4755 → 1.1.4756

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3291,7 +3291,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
3291
3291
  Infrastructure & Cloud`,
3292
3292
  model: 'gpt-5-nano',
3293
3293
  metadata: { agent_id: db_doc._id, func: 'get_agent_category' },
3294
- account_profile_info: db_doc.account_profile_info,
3294
+ account_profile_info,
3295
3295
  });
3296
3296
 
3297
3297
  return ret.data;
@@ -4147,7 +4147,7 @@ export const submit_chat_gpt_prompt = async function (req) {
4147
4147
  format: formattedParams,
4148
4148
  },
4149
4149
  });
4150
- account_module.record_ai_usage(uid, response.usage.input_tokens, response.usage.output_tokens, 'submit chat', prompt, model, metadata, account_profile_info);
4150
+ account_module.record_ai_usage(uid, response.usage.input_tokens, response.usage.output_tokens, 'submit chat', prompt, model, metadata, account_profile_info, tools);
4151
4151
  return { code: 5, data: response.output_text };
4152
4152
  } catch (err) {
4153
4153
  return { code: -5, data: err.message };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4755",
3
+ "version": "1.1.4756",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",