@xuda.io/ai_module 1.1.4973 → 1.1.4975
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 +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3375,8 +3375,8 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
3375
3375
|
throw new Error('The user profile must include a defined email_account_id');
|
|
3376
3376
|
}
|
|
3377
3377
|
}
|
|
3378
|
-
|
|
3379
|
-
let { data: ai_credits } = await account_ms.get_account_ai_usage(account_profile_info.uid);
|
|
3378
|
+
|
|
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');
|
|
@@ -3441,6 +3441,7 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
3441
3441
|
}
|
|
3442
3442
|
|
|
3443
3443
|
setTimeout(async () => {
|
|
3444
|
+
debugger;
|
|
3444
3445
|
if (perform_ai_execution) {
|
|
3445
3446
|
await process_conversation(uid, conversation_doc._id, account_profile_info, job_id, headers);
|
|
3446
3447
|
}
|