mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-29 01:03:17 +00:00
723 B
723 B
- Expose a mountable Axum router; listener binding, server lifecycle, and shared inbound middleware belong to
gateway - Own the public inference HTTP boundary: endpoint paths, request parsing, model alias resolution, response envelopes, and SSE delivery
- Delegate inference execution to
coreand provider transformations and authentication tollmsand the auth crates; do not duplicate them in handlers - Use injected deployments, HTTP pools, settings, and secret sources; do not load process configuration or construct independent clients in handlers
- Test HTTP contracts here, including status codes, forwarded headers, error envelopes, and streaming behavior; keep core and provider tests in their owning crates