mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(feat) log request_tags in SpendLogs
This commit is contained in:
parent
097b46d948
commit
23589a398a
4 changed files with 4 additions and 0 deletions
|
@ -1270,6 +1270,7 @@ def get_logging_payload(kwargs, response_obj, start_time, end_time):
|
|||
"total_tokens": usage.get("total_tokens", 0),
|
||||
"prompt_tokens": usage.get("prompt_tokens", 0),
|
||||
"completion_tokens": usage.get("completion_tokens", 0),
|
||||
"request_tags": metadata.get("tags", []),
|
||||
}
|
||||
|
||||
verbose_proxy_logger.debug(f"SpendTable: created payload - payload: {payload}\n\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue