mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix: skip update default team member budget
This commit is contained in:
parent
311c2f47ec
commit
e4133f9127
1 changed files with 1 additions and 13 deletions
|
|
@ -3370,19 +3370,7 @@ class ProxyStartupEvent:
|
|||
@classmethod
|
||||
async def _update_default_team_member_budget(cls):
|
||||
"""Update the default team member budget"""
|
||||
if litellm.default_internal_user_params is None:
|
||||
return
|
||||
|
||||
_teams = litellm.default_internal_user_params.get("teams") or []
|
||||
if _teams and all(isinstance(team, dict) for team in _teams):
|
||||
from litellm.proxy.ui_crud_endpoints.proxy_setting_endpoints import (
|
||||
update_default_team_member_budget,
|
||||
)
|
||||
|
||||
teams_pydantic_obj = [NewUserRequestTeam(**team) for team in _teams]
|
||||
await update_default_team_member_budget(
|
||||
teams=teams_pydantic_obj, user_api_key_dict=UserAPIKeyAuth(token=hash_token(master_key)) # type: ignore
|
||||
)
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
async def initialize_scheduled_background_jobs(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue