mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
In forward mode the supervisor now passes the config file Python loads as LITELLM_FORWARD_CONFIG. With it set, the gateway mounts its inference routes in front of Python, which answers everything the gateway does not serve as it would without the gateway. The decision is split so the gateway library never names forwarding. The gateway only says what it supports, as values in src/admit. unsupported() lists every setting it does not honor, and Admission::admit lets a request in or hands it back with a Refused reason. gateway-forward owns the second server: Forward::behind relays what admit hands back and what no native route takes, Forward::without_native relays everything when the configuration has a blocker, and every response names who answered it in x-litellm-gateway, as native or python with a reason code. When Python is gone, gateway-forward and the behind call are deleted and admit stays. Admission is an allowlist at every level. The configuration allowlist in admit/config.rs destructures the config in full, so every setting starts out unsupported and moves onto the allowlist in the change that makes Rust honor it. Boot logs every blocker, not only the first. A caller is served only when the auth planner from #51605 picks the key path for its request and its key is the master key, so JWT, OAuth2 and public paths go to Python per request instead of with the whole config. ApiKey, an axum extractor that replaces the custom CredentialExtractor, reads that key from the headers in the order and with the scheme handling of Python's get_api_key: x-litellm-api-key, then Authorization, then the provider key headers. No request body is on the allowlist yet. So nothing is served natively yet: every inference request carries a body and goes to Python. Later changes widen the allowlist one setting, route and body field at a time. |
||
|---|---|---|
| .. | ||
| test_audio_transcription_model_resolution.py | ||
| test_basic_proxy_startup.py | ||
| test_callback_delete.py | ||
| test_callback_leak_contracts.py | ||
| test_callback_settings_boot.py | ||
| test_claude_settings_real_io.py | ||
| test_codex_catalog_boot.py | ||
| test_config_declared_model_behaviours.py | ||
| test_effective_settings.py | ||
| test_fips_mode_boot.py | ||
| test_json_logs_startup.py | ||
| test_lazy_routes_flag.py | ||
| test_main_real_io.py | ||
| test_multi_worker_reload.py | ||
| test_multi_worker_slow_import_boot.py | ||
| test_openapi_docs_route.py | ||
| test_reload_worker_pool.py | ||
| test_runtime_real_io.py | ||
| test_rust_forward.py | ||
| test_rust_forward_lifecycle.py | ||
| test_rust_forward_traffic.py | ||
| test_search_embedding_model_settings.py | ||
| test_startup_output.py | ||
| test_unit_conftest_isolation.py | ||