Menu

Built a lightweight local FastAPI proxy to catch HTTP 429s and fail over from Cloud -> Groq -> Local LLM
📰

Built a lightweight local FastAPI proxy to catch HTTP 429s and fail over from Cloud -> Groq -> Local LLM

DEV Community: opensource·Abin Babu·15 days ago
#FHcpSZmG
#devtoopensource#devto#dev#groq#openai
Reading 0:00
15s threshold

Abin Babu

I kept losing multi-step agent runs whenever an upstream API threw a 429 or Groq rejected OpenAI SDK fields like logprobs and messages[].name.

Put together a minimal OpenAI-compatible local proxy (http://127.0.0.1:8787/v1) that handles cooldown-based failover and strips incompatible Groq params automatically.

MIT repo if anyone wants to fork or tweak it:
https://github.com/abin200babu-cyber/zero-downtime-ai-gateway-lite


Curious what fallback chains everyone else is using when rate limits hit mid-run?