feat: implement fallback model configuration with automatic failover - #358
Conversation
|
@johnmic0132 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Strict review blocker: and are failing. Please fix both before requesting merge. |
|
Strict review blocker: |
|
Strict review blocker: required checks are failing. Please fix the failures before requesting merge. |
|
@johnmic0132 this PR has merge conflicts with the |
Overview
This PR adds a robust Fallback Model Configuration system that ensures high availability and graceful degradation when primary models fail or are unavailable. It introduces multi-tier fallback chains (primary/secondary/tertiary), configurable health monitoring, automatic failover, circuit breaker protection, persistent state, and fallback analytics so traffic shifts to healthy models quickly and automatically recovers when the primary model is restored.
Related Issue
Closes #
Changes
🛡️ Fallback Model Configuration System
[MODIFY]
config.pyprimary,secondary,tertiary.[MODIFY]
store.py[MODIFY]
errors.pyFallbackNotAvailableError,CircuitBreakerOpenError, andHealthCheckFailedError.[MODIFY]
tests/test_model_router.pyVerification Results
Closes #200