A gateway is defined by what happens when the upstream is slow, the stream breaks, Redis disappears, or the cache returns a confident wrong answer. This project treats those cases as the product, not as footnotes.
The edge speaks OpenAI's chat-completions contract in SSE or JSON, normalises Ollama NDJSON and hosted SSE into one event shape, and places a Redis token bucket, a semantic cache, and a health-aware router in front of the model backends. Prometheus and an authenticated admin dashboard make the behaviour legible.
8.9×
faster wall clock on repeat traffic
41.2 ms
p50 TTFT · hot cache on EKS
99.4%
hit precision · 50% repeat share
500 ms
semantic lookup budget