mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-24 22:09:56 +00:00
Adds the /model/auto_router_management team member permission. A non-admin member of a team that grants it may create auto-routers for that team and update or delete the ones they created, through the model management endpoints and both /auto_router dry runs. Ordinary models, and routers a teammate created, stay team-admin and proxy-admin only. The arm is judged once, in ModelManagementAuthChecks.can_user_make_team_model_call, on the RESULT of the write: the deployment must be a strategy router before and after (so neither a router nor a regular model can be converted through an update), an existing row must carry the member's own created_by, and the public name may not widen the team's model access (no wildcard, no all-proxy-models, no name the router already serves). The team model list writes model management performs after that check no longer re-run the HTTP handlers' admin-only auth through a synthetic Request; they call the extracted add_models_to_team / remove_models_from_team. Dashboard: the Auto-Routers tab and Add Auto Router open to a granted member (team required) while Add Model stays hidden; row and detail edit/delete appear only on the member's own routers; the team Member Permissions picker lists the new option. |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||