Refactor 'check_view_exists' logic (#5659)

* fix(proxy/utils.py): comment out auto-upsert logic in check_view_exists

Prevents proxy from failing on startup due to faulty logic

* fix(db/migration_scripts/create_views.py): fix 'DailyTagSpend' quotation on check

* fix(create_views.py): mongly global spend time period should be 30d not 20d

* fix(schema.prisma): index on startTime and endUser for efficient UI querying
This commit is contained in:
Krish Dholakia 2024-09-12 13:39:50 -07:00 committed by GitHub
parent 5c1a70be21
commit c76d2c6ade
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 202 additions and 209 deletions

View file

@ -192,6 +192,8 @@ model LiteLLM_SpendLogs {
team_id String?
end_user String?
requester_ip_address String?
@@index([startTime])
@@index([end_user])
}
// View spend, model, api_key per request