How do you implement fallback strategies when the primary model is unavailable or rate-limited?

Technical