mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
fix(router): prevent cross-team deployment leakage in fallback path
Guard should_include_deployment fallback to only return deployments matching the requested team_id, preventing public-name collisions from leaking deployments across teams Made-with: Cursor
This commit is contained in:
parent
ef9ea1f8f2
commit
4f302f10d0
1 changed files with 2 additions and 1 deletions
|
|
@ -8225,7 +8225,8 @@ class Router:
|
|||
):
|
||||
return True
|
||||
elif model_name is not None and model["model_name"] == model_name:
|
||||
return True
|
||||
if team_id is None or model["model_info"].get("team_id") == team_id:
|
||||
return True
|
||||
return False
|
||||
|
||||
def _get_all_deployments(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue