mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
(feat) use clickhouse as a logging provider
This commit is contained in:
parent
e40df7c2cc
commit
4e8b62ccea
3 changed files with 64 additions and 13 deletions
|
@ -1360,6 +1360,7 @@ def get_logging_payload(kwargs, response_obj, start_time, end_time):
|
|||
"user": kwargs.get("user", ""),
|
||||
"metadata": metadata,
|
||||
"cache_key": cache_key,
|
||||
"spend": kwargs.get("response_cost", 0),
|
||||
"total_tokens": usage.get("total_tokens", 0),
|
||||
"prompt_tokens": usage.get("prompt_tokens", 0),
|
||||
"completion_tokens": usage.get("completion_tokens", 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue