mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
A key or team restricted to an access group or a public model name got a 403 when the request named a deployment by its litellm_params.model, because every model access check keys by public name. Auth now admits such a name on the request path when the caller is granted at least one deployment it selects, and the router asks the proxy which of the deployments it resolved the caller may use, so the request is load balanced across the granted ones only. The router core gets one host step, authorize_candidates, asked on every resolution of a request that names a deployment's litellm model for a keyed caller, and on a custom strategy's pre-routed pick. A caller left with no deployment gets the key model access denied 403 with no retry, fallback or passthrough. Dispatches in route_llm_request that skip the router refuse such a name when the caller could not have requested it in strict mode. Every other caller of the model gates keeps the strict default. |
||
|---|---|---|
| .. | ||
| invoke | ||
| steps | ||
| surface | ||
| __init__.py | ||
| core.py | ||
| routing_stores.py | ||