forked from phoenix/litellm-mirror
fix - return success spend reset
This commit is contained in:
parent
ca41e6590e
commit
787c02c8db
1 changed files with 6 additions and 1 deletions
|
@ -5931,7 +5931,7 @@ async def view_spend_logs(
|
|||
)
|
||||
|
||||
|
||||
@router.get(
|
||||
@router.post(
|
||||
"/global/spend/reset",
|
||||
tags=["Budget & Spend Tracking"],
|
||||
dependencies=[Depends(user_api_key_auth)],
|
||||
|
@ -5961,6 +5961,11 @@ async def global_spend_reset():
|
|||
)
|
||||
await prisma_client.db.litellm_teamtable.update_many(data={"spend": 0.0}, where={})
|
||||
|
||||
return {
|
||||
"message": "Spend for all API Keys and Teams reset successfully",
|
||||
"status": "success",
|
||||
}
|
||||
|
||||
|
||||
@router.get(
|
||||
"/global/spend/logs",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue