LLM Gateway With Fallbacks
Build a local non-streaming HTTP proxy with real provider fallback, per-provider environment credentials, response limits, and one overall deadline. Verify the complete wire path with loopback servers.
Build a local non-streaming HTTP proxy with real provider fallback, per-provider environment credentials, response limits, and one overall deadline. Verify the complete wire path with loopback servers.
- Connect an existing chat-completions client to a local fallback endpoint
- Trace provider outages without forwarding caller credentials
LLM Gateway With Fallbacks in 4 stages
Route a bounded request through providers with explicit failure semantics.
Validate provider endpoints
Treat the provider list as trusted configuration.
starter · ~2 hours · Go
Parse URLTransport ruleNo credentialsStable endpoint listClassify failures without retrying everything
Separate a repairable outage from a broken request.
core · ~2 hours · Go
Status bounds2xx success429 and 5xxTerminal client errorSend one bounded HTTP request
Bound one request in both bytes and time.
core · ~2 hours · Go
Context-bound POSTHTTP transportLimit plus oneClose response bodyRoute with a total-attempt budget
Route the caller body while keeping credentials private.
core · ~2 hours · Go
Provider orderAttempt budgetFailure classTerminal outcome