@xuda.io/ai_module 1.1.5376 → 1.1.5378
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 +2 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4747,6 +4747,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4747
4747
|
const job_info = await jobs_ms.get_job_info({ job_id });
|
|
4748
4748
|
|
|
4749
4749
|
if (counter > 40) {
|
|
4750
|
+
clearInterval(interval);
|
|
4750
4751
|
resolve(null);
|
|
4751
4752
|
} else {
|
|
4752
4753
|
if (job_info.code < 0 || job_info.data.stat === 4) {
|
|
@@ -11244,5 +11245,6 @@ export const validate_credits_limit = async function (uid, profile_id) {
|
|
|
11244
11245
|
let err = new Error(`ai credits reach to hard limit`);
|
|
11245
11246
|
err.credit_limit_error = true;
|
|
11246
11247
|
err.account_id = account_profile_info.uid;
|
|
11248
|
+
return err;
|
|
11247
11249
|
}
|
|
11248
11250
|
};
|