@@ -264,6 +264,7 @@ model LiteLLM_SpendLogs {
264
264
proxy_server_request Json ? @default (" {}" )
265
265
@@index ([startTime ] )
266
266
@@index ([end_user ] )
267
+ @@index ([session_id ] )
267
268
}
268
269
269
270
// View spend, model, api_key per request
@@ -361,14 +362,14 @@ model LiteLLM_DailyUserSpend {
361
362
model String
362
363
model_group String ?
363
364
custom_llm_provider String ?
364
- prompt_tokens Int @default (0 )
365
- completion_tokens Int @default (0 )
366
- cache_read_input_tokens Int @default (0 )
367
- cache_creation_input_tokens Int @default (0 )
365
+ prompt_tokens BigInt @default (0 )
366
+ completion_tokens BigInt @default (0 )
367
+ cache_read_input_tokens BigInt @default (0 )
368
+ cache_creation_input_tokens BigInt @default (0 )
368
369
spend Float @default (0.0 )
369
- api_requests Int @default (0 )
370
- successful_requests Int @default (0 )
371
- failed_requests Int @default (0 )
370
+ api_requests BigInt @default (0 )
371
+ successful_requests BigInt @default (0 )
372
+ failed_requests BigInt @default (0 )
372
373
created_at DateTime @default (now () )
373
374
updated_at DateTime @updatedAt
374
375
@@ -388,14 +389,14 @@ model LiteLLM_DailyTeamSpend {
388
389
model String
389
390
model_group String ?
390
391
custom_llm_provider String ?
391
- prompt_tokens Int @default (0 )
392
- completion_tokens Int @default (0 )
393
- cache_read_input_tokens Int @default (0 )
394
- cache_creation_input_tokens Int @default (0 )
392
+ prompt_tokens BigInt @default (0 )
393
+ completion_tokens BigInt @default (0 )
394
+ cache_read_input_tokens BigInt @default (0 )
395
+ cache_creation_input_tokens BigInt @default (0 )
395
396
spend Float @default (0.0 )
396
- api_requests Int @default (0 )
397
- successful_requests Int @default (0 )
398
- failed_requests Int @default (0 )
397
+ api_requests BigInt @default (0 )
398
+ successful_requests BigInt @default (0 )
399
+ failed_requests BigInt @default (0 )
399
400
created_at DateTime @default (now () )
400
401
updated_at DateTime @updatedAt
401
402
@@ -415,14 +416,14 @@ model LiteLLM_DailyTagSpend {
415
416
model String
416
417
model_group String ?
417
418
custom_llm_provider String ?
418
- prompt_tokens Int @default (0 )
419
- completion_tokens Int @default (0 )
420
- cache_read_input_tokens Int @default (0 )
421
- cache_creation_input_tokens Int @default (0 )
419
+ prompt_tokens BigInt @default (0 )
420
+ completion_tokens BigInt @default (0 )
421
+ cache_read_input_tokens BigInt @default (0 )
422
+ cache_creation_input_tokens BigInt @default (0 )
422
423
spend Float @default (0.0 )
423
- api_requests Int @default (0 )
424
- successful_requests Int @default (0 )
425
- failed_requests Int @default (0 )
424
+ api_requests BigInt @default (0 )
425
+ successful_requests BigInt @default (0 )
426
+ failed_requests BigInt @default (0 )
426
427
created_at DateTime @default (now () )
427
428
updated_at DateTime @updatedAt
428
429
0 commit comments