Skip to content

Post: model fallback and routing without a provider SDK each (Neon AI Gateway #2)#1443

Open
bobbyonmagic wants to merge 3 commits into
mainfrom
post/neon-model-fallback-and-routing
Open

Post: model fallback and routing without a provider SDK each (Neon AI Gateway #2)#1443
bobbyonmagic wants to merge 3 commits into
mainfrom
post/neon-model-fallback-and-routing

Conversation

@bobbyonmagic

Copy link
Copy Markdown
Collaborator

Second AI-gateway post (dated Jul 14). Through one OpenAI-compatible gateway, cross-provider fallback is a loop over model names instead of a stack of per-provider SDKs and error handlers.

Tested live: a request to ["not-a-real-model", "claude-haiku-4-5"] failed the first (400), fell back to Claude (200), and returned the answer plus a 'tried' record. Reuses neon-ai-gateway-demo. Extends fallback into a routing primitive (cost/latency/capability-first) and is honest about the caveats (log degradation, fall back to a comparable model).

Interactive: the fallback loop code, an animated terminal of the real failure/recovery, a tip callout, and a github card. OG generated, validated.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploying devops-daily with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3cd9fe1
Status: ✅  Deploy successful!
Preview URL: https://f1a5198c.devops-daily.pages.dev
Branch Preview URL: https://post-neon-model-fallback-and.devops-daily.pages.dev

View logs

@bobbyonmagic bobbyonmagic force-pushed the post/neon-model-fallback-and-routing branch from cb653bc to 3cd9fe1 Compare July 8, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant