litellm/litellm-rust/crates/router
Yujong Lee 3c2fcecc5e
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
fix(rust-messages): filter body params with Python's rules and send the missing betas
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 08:21:21 -07:00
..
src refactor(rust): give Messages configs typed litellm params (#45611) 2026-10-09 16:29:45 -07:00
tests fix(rust-messages): filter body params with Python's rules and send the missing betas 2026-10-19 08:21:21 -07:00
Cargo.toml refactor(rust): give Messages configs typed litellm params (#45611) 2026-10-09 16:29:45 -07:00
README.md chore(rust): prune inference deps and rewrite layering docs (#44836) 2026-10-06 07:17:27 -07:00

litellm-router scaffolds the model-list setup and deployment lookup portion of Python's litellm.Router. Router::from_model_list(&config.model_list) maps configured public names to provider deployments. Programmatic callers can collect (String, Deployment) entries into a Router

Lookup is exact and returns None for an unknown name. This extraction preserves the gateway's existing behavior: the last entry wins when public names repeat. Multiple deployments per model group, routing strategies, retries, cooldowns, and fallbacks are not implemented yet

The router owns deployment configuration and selection. The gateway handles HTTP errors and responses, while the inference-<fmt> crates execute provider calls and resolve credentials