Spaces:
Runtime error
Runtime error
Commit History
-
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