Add configurable inference fallback for self-hosted agents
Problem
I run Buzz agents primarily against a self-hosted vLLM endpoint. If that server is unavailable, the agent cannot respond because buzz-agent supports only one configured inference provider.
Requested behavior
Allow an agent to use an ordered fallback:
- Primary: self-hosted OpenAI-compatible endpoint
- Secondary: self-hosted OR cloud hosted OpenAI-compatible provider (Venice.ai DIEM Credits for example as a backstop)
Failover should occur for connection failures, timeouts, rate limits, and server errors, with automatic recovery to the primary endpoint.
Use case
This would support local-first inference for privacy and cost while retaining agent availability during maintenance or hardware outages.
An external gateway such as LiteLLM can provide this today, but native support would simplify deployment and configuration.
I’m affiliated with AllRouter. Your local-first + cloud-backstop case is close to a test we can support, but I would keep it outside Buzz first: one real prompt, a hard spend cap, fail over only on connection/timeout/429/5xx, and immediate rollback to the current single-provider config if output or tool-call behavior differs.
If useful, I can run that bounded comparison against your current vLLM workload and publish the request/latency/cost/failure log here. One question first: which failure is costing you most today—planned maintenance, timeouts, rate limits, or server errors?
Keeping the first bounded comparison outside Buzz sounds sensible. For native support, I’d model fallback at the request boundary with retryable 429/5xx/timeout/connection classes, a circuit cool-down, and a logical request ID carried across endpoints. The local-first path can remain the default while logging the effective provider/model and whether the retry happened before any tool call or streamed output.