Toolverse
All skills

openrouter-fallback-config

by jeremylongshore

Configure model fallback chains for high availability. Use when building fault-tolerant LLM systems. Trigger with phrases like 'openrouter fallback', 'openrouter backup model', 'openrouter redundancy', 'model failover'.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Testing
Views
21

About this skill

Configure model fallback chains for high availability. Use when building fault-tolerant LLM systems. Trigger with phrases like 'openrouter fallback', 'openrouter backup model', 'openrouter redundancy', 'model failover'.

How to use

  1. Upewnij się, że masz skonfigurowaną integrację OpenRouter i zidentyfikowane co najmniej dwa modele — jeden główny i jeden lub więcej zapasowych.

  2. Użyj natywnego fallback OpenRouter, przekazując tablicę identyfikatorów modeli w polu models zamiast model — OpenRouter będzie próbować każdy z nich po kolei, aż jeden się powiedzie.

  3. Ustaw strategię fallback w polu route na wartość "fallback", aby OpenRouter obsługiwał failover automatycznie bez dodatkowego kodu po stronie klienta.

  4. Skonfiguruj timeout dla każdej próby, ustawiając request_timeout — dzięki temu wolne modele szybko się nie powiodą i system przejdzie do następnego w łańcuchu bez zbędnych opóźnień.

  5. Przetestuj łańcuch fallback, tymczasowo używając nieprawidłowego identyfikatora modelu jako głównego — powinnaś zobaczyć, że system automatycznie przechodzi do modeli zapasowych i żądanie się powiedzie.

  6. Monitoruj logi, aby sprawdzić, który model obsłużył każde żądanie, i dodaj więcej różnorodnych fallback'ów z różnych dostawców, jeśli cały łańcuch się wyczerpie.

Related skills

python-testing-patterns

by wshobson

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

Testing
46146

lean4-theorem-proving

by cameronfreer

Use when developing Lean 4 proofs, facing type class synthesis errors, managing sorries/axioms, or searching mathlib - provides build-first workflow, instance management patterns (haveI/letI), and domain-specific tactics

Testing
9108

go-dev-guidelines

by jumppad-labs

This skill should be used when writing, refactoring, or testing Go code. It provides idiomatic Go development patterns, TDD-based workflows, project structure conventions, and testing best practices using testify/require and mockery. Activate this skill when creating new Go

Testing
1190

backtesting-frameworks

by wshobson

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

Testing
12105

dependency-upgrade

by wshobson

Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.

Testing
17138

hono

by openstatusHQ

Efficiently develop Hono applications using Hono CLI. Supports documentation search, API reference lookup, request testing, and bundle optimization.

Testing
1257