- Cap maximum cooldown for rate limit handling in account unavailability and single-model chat flows
- Dynamic custom model fetching for model selection
This commit is contained in:
1 parent
c42c0146ab
commit
cca615eaff
19 files changed
+108
-60
No files matched your search
@@ -38,6 +38,9 @@ export const BACKOFF_CONFIG = {
|
||||
// Default cooldown for transient/unknown errors
|
||||
export const TRANSIENT_COOLDOWN_MS = 30 * 1000;
|
||||
|
||||
// Hard cap for provider-reported rate limit cooldown (e.g. codex resets_at can be 5-6h)
|
||||
export const MAX_RATE_LIMIT_COOLDOWN_MS = 30 * 60 * 1000;
|
||||
|
||||
// Cooldown durations (ms)
|
||||
const COOLDOWN = {
|
||||
long: 2 * 60 * 1000,
|
||||
|
||||
Reference in new issue
Block a user