Spaces:
Runtime error
Runtime error
Commit History
-
feat: add config.py, config_loader.py, main.py β system boots end-to-end
47241e6 -
feat: add KeyPool dual sub-pool (general+sentinel) + shared exceptionsβ
Task 2: packages/brain/key_rotation/pool.py β full V4 KeyPool - Dual sub-pool: self.general[] + self.sentinel[] - get_key(pool_type) β weighted RR with circuit breaker - get_sentinel_key() β dedicated Gemini 2.5 Pro key - report_success/report_failure with per-provider thresholds - asyncio.Lock thread-safety - AllKeysExhaustedError + SentinelKeyUnavailableError in shared/exceptions.py - _is_available() auto-resets expired cooldowns Weights: Groq=3, Cerebras=3, Together=2, OpenRouter=2, Gemini=2"7419178