hook-model-fallback
CommunityKeep conversations reliable with backup models.
Authorxuezhaojun
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Automatically switches to a fallback model when the primary model fails (rate limits, outages, or degraded responses), and tracks failure counts per session to reset on new sessions.
Core Features & Use Cases
- Automatic fallback to pre-configured alternative models when the primary model is unavailable
- Per-session failure tracking with reset on new sessions to maintain consistency
- Simple integration with existing chat workflows via a small configuration snippet
Quick Start
Integrate the modelFallback hook into your chat workflow by importing modelFallback and initializing it with your fallbacks and retry settings.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hook-model-fallback Download link: https://github.com/xuezhaojun/oh-your-opencode/archive/main.zip#hook-model-fallback Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.