@xuda.io/ai_module 1.1.5366 → 1.1.5368

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3694,6 +3694,7 @@ const contactGuardrailAgent = new Agent({
3694
3694
  // };
3695
3695
 
3696
3696
  export const submit_chat_conversation = async function (req, job_id, headers) {
3697
+ debugger;
3697
3698
  const { profile_id, uid } = req;
3698
3699
  let { conversation_id } = req;
3699
3700
  try {
@@ -3714,7 +3715,6 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
3714
3715
  break;
3715
3716
  }
3716
3717
  case 'ai': {
3717
- debugger;
3718
3718
  ret = await ai_chat_conversation(req, job_id, headers);
3719
3719
  break;
3720
3720
  }
@@ -11233,6 +11233,7 @@ export const validate_credits_limit = async function (uid, profile_id) {
11233
11233
  let { data: ai_credits } = await account_ms.get_account_ai_usage({ uid: account_profile_info.uid });
11234
11234
 
11235
11235
  if (ai_credits.credits.total - ai_credits.usage.total < -0.5) {
11236
+ debugger;
11236
11237
  throw new Error('ai credits reach to hard limit');
11237
11238
  }
11238
11239
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5366",
3
+ "version": "1.1.5368",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",