(feat) SpendLogs show total_tokens, prompt_tokens, completion_tokens

This commit is contained in:
ishaan-jaff 2024-01-26 10:26:15 -08:00
parent b9fc2c3735
commit 64f1301033
4 changed files with 14 additions and 6 deletions

View file

@ -53,11 +53,13 @@ model LiteLLM_SpendLogs {
call_type String
api_key String @default ("")
spend Float @default(0.0)
total_tokens Float @default(0.0)
prompt_tokens Float @default(0.0)
completion_tokens Float @default(0.0)
startTime DateTime // Assuming start_time is a DateTime field
endTime DateTime // Assuming end_time is a DateTime field
model String @default("")
user String @default("")
usage Json @default("{}")
metadata Json @default("{}")
cache_hit String @default("")
cache_key String @default("")