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/
Click to show internal directories.
Click to hide internal directories.