mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(feat) log api_base in spend logs
This commit is contained in:
parent
0c8258c522
commit
0418ba5fc3
4 changed files with 4 additions and 0 deletions
|
@ -1600,6 +1600,7 @@ def get_logging_payload(kwargs, response_obj, start_time, end_time):
|
|||
"completion_tokens": usage.get("completion_tokens", 0),
|
||||
"request_tags": metadata.get("tags", []),
|
||||
"end_user": kwargs.get("user", ""),
|
||||
"api_base": litellm_params.get("api_base", ""),
|
||||
}
|
||||
|
||||
verbose_proxy_logger.debug(f"SpendTable: created payload - payload: {payload}\n\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue