Go backend experiment
LLM Gateway
What happens when an LLM request gets interrupted?
Backend developer
Local demo · mock provider
Go / SSE / Prometheus / Grafana / Docker
Streaming a model response is only part of the job. The user can close the page, a request can be cancelled, or the server can shut down mid-response. I built this small Go project to test those cases.
What is implemented
An OpenAI-compatible endpoint, SSE streaming and request cancellation. The service handles graceful shutdown, and Prometheus and Grafana provide service metrics. A browser playground makes it possible to try requests locally.
Try it without a model account
Docker Compose runs the local setup. The playground uses a mock provider, so API keys and paid model calls are not required. The repository documents the current implementation and its limits.
This is a backend demonstration project. It is not presented as a production multi-provider routing platform.