fix(ai-moderation): raise retry backoffs and cooldowns, make 429 retryable, reduce prompt false positives

This commit is contained in:
MythEclipse
2026-06-05 21:47:02 +07:00
parent d7a35e8377
commit 25c86dcc30
5 changed files with 57 additions and 29 deletions
@@ -165,9 +165,9 @@ export async function llmChat(
},
{
retries,
minTimeout: 500,
maxTimeout: 4_000,
factor: 2,
minTimeout: 2_000,
maxTimeout: 30_000,
factor: 3,
},
);
}