mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-06 02:09:04 +00:00
5 lines
633 B
Markdown
5 lines
633 B
Markdown
- Keep this crate a thin composition layer: mount endpoint routers and serve the supplied listener
|
|
- Server lifecycle and shared inbound middleware belong here, including client authentication, rate limiting, and request logging
|
|
- Endpoint paths, request handling, model resolution, and response encoding belong to the mounted crates; provider execution belongs to `core` and `llms`
|
|
- Inject shared state and infrastructure; avoid global runtimes, duplicate client pools, and abstractions for hypothetical endpoint groups
|
|
- Test mounting and server lifecycle through public HTTP behavior; test endpoint semantics in the owning crate
|