(feat) track spend key-model, user-model, team-model

This commit is contained in:
ishaan-jaff 2024-02-16 16:32:17 -08:00
parent 2c9d142e42
commit d65c6d3869
3 changed files with 31 additions and 1 deletions

View file

@ -24,6 +24,8 @@ model LiteLLM_TeamTable {
budget_reset_at DateTime?
created_at DateTime @default(now()) @map("created_at")
updated_at DateTime @default(now()) @updatedAt @map("updated_at")
model_spend Json @default("{}")
model_max_budget Json @default("{}")
}
// Track spend, rate limit, budget Users
@ -41,6 +43,8 @@ model LiteLLM_UserTable {
budget_duration String?
budget_reset_at DateTime?
allowed_cache_controls String[] @default([])
model_spend Json @default("{}")
model_max_budget Json @default("{}")
}
// Generate Tokens for Proxy