mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-26 22:30:11 +00:00
The Rust gateway now calls hooks at all three request layers, each from its own layer code: - gateway: GatewayHooks::pre_call in the shared request::route step every handler already goes through, post_call as a layer on the inference router - router: RouterHooks::filter_deployments inside Router::select - inference: the existing Interceptors, composed with the cache-key capture through a route-neutral Chain Hooks are stored type-erased (Arc<dyn ...>, DynInterceptors in litellm-host), so Gateway, Router and the route handlers keep their plain signatures. Defaults are no-ops; only tests install recorders. |
||
|---|---|---|
| .. | ||
| .agents/skills | ||
| crates | ||
| .gitignore | ||
| AGENTS.md | ||
| Cargo.lock | ||
| Cargo.toml | ||
| clippy.toml | ||