Spaces:
Paused
Paused
Anurag commited on
Update comments and instructions in .env.example
Browse files130 unmodified lines1311321331341351361371381391401411424 unmodified lines147148149150151152153130 unmodified lines# Keys are rotated round-robin on every request β useful when you# have multiple accounts or want to spread rate-limit quota.## Pattern: <PROVIDER>_API_KEYS=key1,key2,key3# Fallback order: plural pool β singular key β LLM_API_KEY (optional)# Set false only if you want to disable global LLM_API_KEY fallback# across providers.LLM_API_KEY_FALLBACK_ENABLED=true## Uncomment and fill in only the providers you use:## ANTHROPIC_API_KEYS=sk-ant-key1,sk-ant-key2,sk-ant-key34 unmodified lines# KILOCODE_API_KEYS=key1,key2# OPENCODE_API_KEYS=key1,key2# ZAI_API_KEYS=key1,key2# MOONSHOT_API_KEYS=key1,key2# MINIMAX_API_KEYS=key1,key2# XIAOMI_API_KEYS=key1,key2# VOLCANO_ENGINE_API_KEYS=key1,key2130 unmodified lines1311321331341351361371381391401411421431441451461471481491501511521531541551561571581594 unmodified lines164165166167168169170171130 unmodified lines# Keys are rotated round-robin on every request β useful when you# have multiple accounts or want to spread rate-limit quota.## Smart backoff: when a key gets a 429/402 response, it is temporarily# suspended so other keys handle traffic.# Strike 1 β suspended for KEY_BLACKLIST_COOLDOWN_MS (default 60 s)# Strike 2 β suspended for KEY_BLACKLIST_COOLDOWN_MS Γ 4 (default 4 min)# Strike 3 β suspended for 24 h (quota likely exhausted β skipped all day)# A successful response resets the strike counter for that key.## Pattern: <PROVIDER>_API_KEYS=key1,key2,key3# Fallback order: plural pool β singular key β LLM_API_KEY (optional)# Set false only if you want to disable global LLM_API_KEY fallback# across providers.LLM_API_KEY_FALLBACK_ENABLED=true## Base backoff duration (ms) after the first 429 on a key (default: 60 s).# Increases exponentially on repeated failures.# KEY_BLACKLIST_COOLDOWN_MS=60000## Number of consecutive 429/quota errors before a key is suspended for 24 h.# KEY_MAX_STRIKES=3## Note: KIMI_API_KEYS and MOONSHOT_API_KEYS share the same API endpoint# (api.moonshot.cn) and are combined into one rotation pool automatically.## Uncomment and fill in only the providers you use:## ANTHROPIC_API_KEYS=sk-ant-key1,sk-ant-key2,sk-ant-key34 unmodified lines# KILOCODE_API_KEYS=key1,key2# OPENCODE_API_KEYS=key1,key2# ZAI_API_KEYS=key1,key2# MOONSHOT_API_KEYS=key1,key2 # combines with KIMI_API_KEYS# KIMI_API_KEYS=key1,key2 # combines with MOONSHOT_API_KEYS# MINIMAX_API_KEYS=key1,key2# XIAOMI_API_KEYS=key1,key2# VOLCANO_ENGINE_API_KEYS=key1,key2
.env.example+19-1