mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
style(proxy): black-format team member budget refactor files
Made-with: Cursor
This commit is contained in:
parent
e726e910df
commit
265cb22c07
2 changed files with 3 additions and 9 deletions
|
|
@ -363,9 +363,7 @@ def _budget_disconnect_all_unset(
|
|||
)
|
||||
|
||||
|
||||
async def _disconnect_team_member_budget(
|
||||
tx, *, team_id: str, user_id: str
|
||||
) -> None:
|
||||
async def _disconnect_team_member_budget(tx, *, team_id: str, user_id: str) -> None:
|
||||
await tx.litellm_teammembership.update(
|
||||
where={"user_id_team_id": {"user_id": user_id, "team_id": team_id}},
|
||||
data={"litellm_budget_table": {"disconnect": True}},
|
||||
|
|
|
|||
|
|
@ -2781,9 +2781,7 @@ async def team_member_update(
|
|||
existing_team_row = await _team_member_update_fetch_team_or_raise(
|
||||
prisma_client, data.team_id
|
||||
)
|
||||
await _team_member_update_require_authorized(
|
||||
user_api_key_dict, existing_team_row
|
||||
)
|
||||
await _team_member_update_require_authorized(user_api_key_dict, existing_team_row)
|
||||
|
||||
returned_team_info: TeamInfoResponseObject = await team_info(
|
||||
http_request=http_request,
|
||||
|
|
@ -4355,9 +4353,7 @@ async def list_team(
|
|||
except Exception as e:
|
||||
team_exception = """Invalid team object for team_id: {}. team_object={}.
|
||||
Error: {}
|
||||
""".format(
|
||||
team.team_id, team.model_dump(), str(e)
|
||||
)
|
||||
""".format(team.team_id, team.model_dump(), str(e))
|
||||
verbose_proxy_logger.exception(team_exception)
|
||||
continue
|
||||
# Sort the responses by team_alias
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue