fix(utils.py): add track cost callback to callback list for team id callbacks

This commit is contained in:
Krrish Dholakia 2024-02-02 08:18:06 -08:00
parent dbf2b0b2c8
commit aa40663150
3 changed files with 15 additions and 18 deletions

View file

@ -524,7 +524,6 @@ class PrismaClient:
response = await self.db.litellm_verificationtoken.find_many(
order={"spend": "desc"},
)
print_verbose(f"PrismaClient: response={response}")
if response is not None:
return response
else:
@ -1202,8 +1201,6 @@ async def reset_budget(prisma_client: PrismaClient):
table_name="user", query_type="find_all", reset_at=now
)
verbose_proxy_logger.debug(f"users_to_reset from get_data: {users_to_reset}")
if users_to_reset is not None and len(users_to_reset) > 0:
for user in users_to_reset:
user.spend = 0.0