litellm/litellm
Yujong Lee f493a15ef2 feat(gateway): put the gateway in front of Python behind a native-serving allowlist
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.
2026-11-16 20:23:55 +09:00
..
a2a_protocol refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
accounting fix(proxy): alert on customer org, customer team, and customer member budgets (#51579) 2026-11-13 09:16:33 -08:00
anthropic_interface feat(anthropic): forward message threads on native /v1/messages (#50976) 2026-11-10 18:33:54 -08:00
assistants refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
batch_completion
batches refactor(s3-log): move the rust-backed s3 logger from s3_v3 to s3_v2 (#51893) 2026-11-14 22:24:23 -08:00
caching perf(caching): format dual cache debug logs lazily (#51902) 2026-11-15 06:50:04 +00:00
chat_completions fix(rust): run native async calls through python's async wrapper steps (#50423) 2026-11-10 00:24:20 +00:00
cli chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
completion_extras fix(openai): cap and bill web search rounds on Responses-pinned chat completions (#51802) 2026-11-14 14:36:10 -05:00
compression
containers
decisions feat(gemini): support gemini-decision-1 on /v1/decisions and /v1/systemone (#51220) 2026-11-11 18:33:22 -08:00
deploy chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
embeddings fix(rust): run native async calls through python's async wrapper steps (#50423) 2026-11-10 00:24:20 +00:00
endpoints/speech/speech_to_completion_bridge
enterprise bump: litellm-enterprise 0.1.85 -> 0.1.86, litellm-proxy-extras 0.4.116 -> 0.4.117 (#51876) 2026-11-14 16:42:35 -08:00
evals
experimental_mcp_client
extraction
files refactor(vertex_ai): remove unreachable VertexAIFilesHandler.afile_content (#51966) 2026-11-15 13:54:05 -08:00
fine_tuning
google_genai feat(custom_llm): let custom providers serve native generateContent (#51083) 2026-11-14 05:57:58 -05:00
harness refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
images feat(replicate): add video generation, image generation and text to speech through the predictions API (#51360) 2026-11-12 08:44:50 -08:00
integrations feat(dynamic_rate_limiter): customer organizations and keys borrow idle model capacity and split class shares (#51705) 2026-11-15 12:05:58 -08:00
interactions feat(vertex_ai): label Vertex requests with the caller's key, team, org, and project (#50732) 2026-11-14 00:39:01 -05:00
litellm_core_utils refactor(proxy): keep the detached stream failure hook state on the logging object (#51962) 2026-11-16 02:16:05 -05:00
llms refactor(proxy): keep the detached stream failure hook state on the logging object (#51962) 2026-11-16 02:16:05 -05:00
mcp_client feat(mcp): cache upstream tool lists with an admin-set lifetime (#51160) 2026-11-12 08:48:04 -08:00
messages feat(messages): serve bedrock invoke messages on rust only (#51330) 2026-11-15 16:58:31 -08:00
models feat(proxy): support budget_limits windows on internal users (#51763) 2026-11-14 07:44:35 -05:00
ocr fix(rust): run native async calls through python's async wrapper steps (#50423) 2026-11-10 00:24:20 +00:00
packaging fix(packaging): keep the litellm-proxy package version in step with litellm (#51807) 2026-11-14 18:16:47 -08:00
passthrough refactor: remove redundant comments from fresh changes (#51163) 2026-11-11 09:18:18 -08:00
proxy feat(gateway): put the gateway in front of Python behind a native-serving allowlist 2026-11-16 20:23:55 +09:00
proxy-extras fix(db): index customer hierarchy filters (#51961) 2026-11-16 04:28:34 +08:00
proxy_auth
rag refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
realtime_api refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
redis feat(budgets): replace the python budget hold and settle engine with a rust engine admitted at auth (#51535) 2026-11-15 16:03:51 -08:00
repositories fix(proxy)!: match the sign-in email fallback to the right user (#51897) 2026-11-15 19:13:38 -08:00
rerank_api refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
responses fix(openai): cap and bill web search rounds on Responses-pinned chat completions (#51802) 2026-11-14 14:36:10 -05:00
router_rust fix(router): free a failed rust router call's request without waiting for a full gc (#51963) 2026-11-15 17:04:38 -05:00
router_strategy fix(router)!: name the request size when usage-based routing refuses an over-tpm request (#51838) 2026-11-14 16:16:21 -05:00
router_utils feat(github_copilot): support GitHub App authentication with PEM upload (#51427) 2026-11-14 10:33:20 -05:00
runtime feat(gateway): put the gateway in front of Python behind a native-serving allowlist 2026-11-16 20:23:55 +09:00
rust feat(gateway): put the gateway in front of Python behind a native-serving allowlist 2026-11-16 20:23:55 +09:00
rust_bridge refactor(auth): plan the authentication path in Rust (#51605) 2026-11-16 19:36:57 +09:00
sandbox
scripts chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
search
secret_managers refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
skills refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
systemone
telemetry
text_completions refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
tracing chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
types feat(budgets): replace the python budget hold and settle engine with a rust engine admitted at auth (#51535) 2026-11-15 16:03:51 -08:00
ui feat(customers): sort organizations, teams and members by budget limit (#51924) 2026-11-16 05:22:10 +08:00
vector_store_files
vector_stores fix(bedrock): map OpenAI vector store search filters to AWS RetrievalFilter (#51291) 2026-11-14 13:39:43 -05:00
videos refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
vscode-extension chore: move ui and vscode-extension under litellm and delete docs (#50992) 2026-11-12 04:19:57 +00:00
__init__.py fix(router)!: name the request size when usage-based routing refuses an over-tpm request (#51838) 2026-11-14 16:16:21 -05:00
_internal_context.py refactor(redis): delete the Python RedisBatch now that every request op is native (#51383) 2026-11-13 03:22:28 +00:00
_lazy_imports.py refactor: read lazy attributes with getattr instead of a TypedDict wrapper (#50543) 2026-11-07 10:56:30 -08:00
_lazy_imports_registry.py feat(decisions): support Vercel AI Gateway decision models (#50642) 2026-11-14 09:43:08 -05:00
_logging.py chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
_process_defaults.py
_redis.py feat(redis): serve the proxy's common Redis call with Rust stores (#50170) 2026-11-06 06:01:11 +00:00
_redis_credential_provider.py
_service_logger.py
_uuid.py
_version.py
anthropic_beta_gated_fields.py
anthropic_beta_headers_config.json fix(bedrock): forward the compact-2026-09-04 compaction param on Invoke /v1/messages (#51223) 2026-11-11 15:10:32 -08:00
anthropic_beta_headers_manager.py feat(messages): serve anthropic messages on rust only (#51119) 2026-11-12 00:07:20 +00:00
blog_posts.json
budget_manager.py
constants.py feat(dynamic_rate_limiter): customer organizations and keys borrow idle model capacity and split class shares (#51705) 2026-11-15 12:05:58 -08:00
cost.json
cost_calculator.py fix(azure): send no api-version on Foundry project /openai/v1 Responses bases (#51767) 2026-11-14 05:24:12 -05:00
exceptions.py fix(router)!: name the request size when usage-based routing refuses an over-tpm request (#51838) 2026-11-14 16:16:21 -05:00
guardrails.py
main.py fix(sdk): stop global model_fallbacks from recursing on every completion call (#51817) 2026-11-14 16:28:38 -05:00
model_prices_and_context_window_backup.json chore(cost-map): add fal_ai seedream v5 pro US edit and text-to-image rows priced per image from their fal.ai pages (#51881) 2026-11-15 00:28:42 +00:00
policy_templates_backup.json
provider_endpoints_support_backup.json chore(pricing): sync replicate model prices from replicate.com model pages (#51067) 2026-11-11 01:07:16 +00:00
py.typed
router.py refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
router_api.py feat(redis): serve the router's session pins from a native store (#50870) 2026-11-13 03:22:28 +00:00
router_attempt.py
router_config.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
router_core.py chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
router_deprecated.py fix(router): re-check and reserve per-model rate limits on fallback targets (#50994) 2026-11-10 16:36:10 -08:00
router_host.py
router_python_host.py fix(sdk): stop global model_fallbacks from recursing on every completion call (#51817) 2026-11-14 16:28:38 -05:00
scheduler.py
schema.prisma fix(db): index customer hierarchy filters (#51961) 2026-11-16 04:28:34 +08:00
setup_wizard.py
timeout.py
tool_loop.py fix(tool_choice): accept the Responses API's flat allowed_tools layout on chat completions (#50467) 2026-11-10 13:04:06 -08:00
utils.py fix(cost): keep a deployment's per-second video price over the catalog row's flat price (#51688) 2026-11-15 12:04:41 -08:00