@xuda.io/ai_module 1.1.4973 → 1.1.4974

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 +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3376,7 +3376,7 @@ export const create_conversation = async function (req, job_id, headers) {
3376
3376
  }
3377
3377
  }
3378
3378
  debugger;
3379
- let { data: ai_credits } = await account_ms.get_account_ai_usage(account_profile_info.uid);
3379
+ let { data: ai_credits } = await account_ms.get_account_ai_usage({ uid: account_profile_info.uid });
3380
3380
 
3381
3381
  if (ai_credits.credits.total - ai_credits.usage.total < -0.5) {
3382
3382
  throw new Error('ai credits reach to hard limit');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4973",
3
+ "version": "1.1.4974",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",