Request lifecycle
- Auth — verify the
Authorizationheader (Bearer, GatelitSigned, or GatelitKey) - Provider key resolution — resolve the org’s API key for the requested provider
- Param clamping — strip unsupported params, clamp values in range (e.g.
temperatureis omitted for o-series models) - Request transform — reshape the body to the upstream provider’s format
- Proxy — forward to the upstream API
- Stream normalisation — convert all provider SSE formats to OpenAI format
- Log — record usage, latency, and cost estimate in the background