mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +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
3148d55284
commit
01b7dfa63b
1 changed files with 2 additions and 1 deletions
|
|
@ -8147,7 +8147,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