fallback_provider

command
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Example: fallback_provider demonstrates automatic failover between model providers.

The FallbackProvider tries each provider in order: if the first fails, it transparently falls back to the next. This is useful for production setups where you want primary → secondary → local failover.

No API keys needed — uses mock providers that simulate failures.

go run ./examples/fallback_provider/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL