buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Add configurable inference fallback for self-hosted agents

Open Brahddah opened this issue 4 months ago • 2 comments

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:

  1. Primary: self-hosted OpenAI-compatible endpoint
  2. 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.

Brahddah avatar Jul 27 '26 20:07 Brahddah

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?

toptok369-jpg avatar Jul 31 '26 04:07 toptok369-jpg

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.

Triumph1701 avatar Aug 23 '26 12:08 Triumph1701