mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-13 03:59:12 +00:00
First step of the Rust router POC. The existing implementation moves unchanged to litellm/router_backends/python_router.py as PythonRouter, and litellm.Router becomes a facade that holds it as `backend` and forwards the full current surface, so a Rust backend can sit behind the same class later. No behavior change. Tests that override or patch hooks the backend calls on itself now target PythonRouter, and imports of private helpers and module-global patch strings point at the new module. litellm-rust/crates/router/POC.md is a hand-off copy of the POC design for sessions that cannot see the local notes. Delete it before opening a PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VBPzD1X9jBTmKn6ypDQQTY |
||
|---|---|---|
| .. | ||
| integrations/clickhouse | ||
| tracing | ||
| __init__.py | ||
| conftest.py | ||
| readme.md | ||
| test_check_unbounded_in_lists.py | ||
| test_conftest.py | ||
Testing for litellm/
This directory 1:1 maps the the litellm/ directory, and can only contain mocked tests.
The point of this is to:
- Increase test coverage of
litellm/ - Make it easy for contributors to add tests for the
litellm/package and easily run tests without needing LLM API keys.
File name conventions
litellm/proxy/test_caching_routes.pymaps tolitellm/proxy/caching_routes.pytest_<filename>.pymaps tolitellm/<filename>.py