@xuda.io/ai_module 1.1.5330 → 1.1.5331
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.
- package/index.mjs +6 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3489,11 +3489,13 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
3489
3489
|
}
|
|
3490
3490
|
}
|
|
3491
3491
|
|
|
3492
|
-
let { data: ai_credits } = await account_ms.get_account_ai_usage({ uid: account_profile_info.uid });
|
|
3492
|
+
// let { data: ai_credits } = await account_ms.get_account_ai_usage({ uid: account_profile_info.uid });
|
|
3493
3493
|
|
|
3494
|
-
if (ai_credits.credits.total - ai_credits.usage.total < -0.5) {
|
|
3495
|
-
|
|
3496
|
-
}
|
|
3494
|
+
// if (ai_credits.credits.total - ai_credits.usage.total < -0.5) {
|
|
3495
|
+
// throw new Error('ai credits reach to hard limit');
|
|
3496
|
+
// }
|
|
3497
|
+
|
|
3498
|
+
await validate_credits_limit(uid, profile_id);
|
|
3497
3499
|
|
|
3498
3500
|
let conversation_obj;
|
|
3499
3501
|
try {
|