[LIVE] [NeverTheSame/llm-batcher] 1 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,126 characters
Status: [LIVE]
Endpoints found:
https://api.anthropic.com/v1/messages`
Source: https://github.com/NeverTheSame/llm-batcher
# llm-batcher
An **OpenAI-compatible proxy** in front of the **Anthropic Messages API**: the
first primitive an inference-serving team ships. Point any OpenAI client at it,
get Claude back, with a clean path to add adaptive batching, routing, and a
cost/latency observatory.
> **Status:** Working pass-through proxy + request/response translation, plus
> opt-in microbatching. Fully unit-tested.
## Why this exists
I'm a Senior SRE repositioning toward AI inference systems. This repo applies the
exact skills I already have (distributed systems, proxies, observability) to LLM
serving instead of databases. The roadmap turns it into a realistic miniature of
what an inference proxy fleet does in production.
## What it does today
```
OpenAI client ──▶ POST /v1/chat/completions ──▶ Anthropic Messages API
(this proxy translates ▲
request + response shapes) │
◀──────────────────────┘
```
- Accepts OpenAI-style `POST /v1/chat/completions`
- Lifts `system` messages into Anthropic's top-level `system` field
- Maps roles, forwards to `https://api.anthropic.com/v1/messages`
- Translates the Anthropic response back into the OpenAI chat-completion shape
(incl. `usage` token counts and `finish_reason`)
- `GET /health` for liveness
## Roadmap
| Day | Adds |
|-----|------|
| 1 ✅ | Pass-through proxy + OpenAI/Anthropic translation + tests |
| 2 ✅ | Microbatching: group concurrent requests into a short admission window, fan out under a concurrency cap |
| 3 ✅ | Cost & latency observatory: per-request metrics, p50/p95, $ estimate |
| 4 ✅ | Backpressure + concurrency caps (the SRE part) |
| 5 | Benchmark harness: throughput vs. latency vs. cost under load |
## Microbatching (opt-in)
Real inference proxies rarely send one upstream call per client request under
load. They group requests that arrive close toget