mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix allowed routes
This commit is contained in:
parent
b8a1bc521a
commit
d16f9238ff
3 changed files with 28 additions and 0 deletions
|
@ -169,6 +169,7 @@ model LiteLLM_VerificationToken {
|
||||||
budget_duration String?
|
budget_duration String?
|
||||||
budget_reset_at DateTime?
|
budget_reset_at DateTime?
|
||||||
allowed_cache_controls String[] @default([])
|
allowed_cache_controls String[] @default([])
|
||||||
|
allowed_routes String[] @default([])
|
||||||
model_spend Json @default("{}")
|
model_spend Json @default("{}")
|
||||||
model_max_budget Json @default("{}")
|
model_max_budget Json @default("{}")
|
||||||
budget_id String?
|
budget_id String?
|
||||||
|
@ -342,6 +343,31 @@ model LiteLLM_DailyUserSpend {
|
||||||
@@index([model])
|
@@index([model])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Track daily team spend metrics per model and key
|
||||||
|
model LiteLLM_DailyTeamSpend {
|
||||||
|
id String @id @default(uuid())
|
||||||
|
team_id String
|
||||||
|
date String
|
||||||
|
api_key String
|
||||||
|
model String
|
||||||
|
model_group String?
|
||||||
|
custom_llm_provider String?
|
||||||
|
prompt_tokens Int @default(0)
|
||||||
|
completion_tokens Int @default(0)
|
||||||
|
spend Float @default(0.0)
|
||||||
|
api_requests Int @default(0)
|
||||||
|
successful_requests Int @default(0)
|
||||||
|
failed_requests Int @default(0)
|
||||||
|
created_at DateTime @default(now())
|
||||||
|
updated_at DateTime @updatedAt
|
||||||
|
|
||||||
|
@@unique([team_id, date, api_key, model, custom_llm_provider])
|
||||||
|
@@index([date])
|
||||||
|
@@index([team_id])
|
||||||
|
@@index([api_key])
|
||||||
|
@@index([model])
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Track the status of cron jobs running. Only allow one pod to run the job at a time
|
// Track the status of cron jobs running. Only allow one pod to run the job at a time
|
||||||
model LiteLLM_CronJob {
|
model LiteLLM_CronJob {
|
||||||
|
|
|
@ -169,6 +169,7 @@ model LiteLLM_VerificationToken {
|
||||||
budget_duration String?
|
budget_duration String?
|
||||||
budget_reset_at DateTime?
|
budget_reset_at DateTime?
|
||||||
allowed_cache_controls String[] @default([])
|
allowed_cache_controls String[] @default([])
|
||||||
|
allowed_routes String[] @default([])
|
||||||
model_spend Json @default("{}")
|
model_spend Json @default("{}")
|
||||||
model_max_budget Json @default("{}")
|
model_max_budget Json @default("{}")
|
||||||
budget_id String?
|
budget_id String?
|
||||||
|
|
|
@ -169,6 +169,7 @@ model LiteLLM_VerificationToken {
|
||||||
budget_duration String?
|
budget_duration String?
|
||||||
budget_reset_at DateTime?
|
budget_reset_at DateTime?
|
||||||
allowed_cache_controls String[] @default([])
|
allowed_cache_controls String[] @default([])
|
||||||
|
allowed_routes String[] @default([])
|
||||||
model_spend Json @default("{}")
|
model_spend Json @default("{}")
|
||||||
model_max_budget Json @default("{}")
|
model_max_budget Json @default("{}")
|
||||||
budget_id String?
|
budget_id String?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue