mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(azure/audio_transcriptions.py): support azure cost tracking
extract content time and log correctly as duration
This commit is contained in:
parent
0b3c58665f
commit
e0fbfb5e35
5 changed files with 18 additions and 21 deletions
|
@ -947,7 +947,9 @@ def _set_spend_logs_payload(
|
|||
spend_logs_url: Optional[str] = None,
|
||||
):
|
||||
verbose_proxy_logger.info(
|
||||
"Writing spend log to db - request_id: {}".format(payload.get("request_id"))
|
||||
"Writing spend log to db - request_id: {}, spend: {}".format(
|
||||
payload.get("request_id"), payload.get("spend")
|
||||
)
|
||||
)
|
||||
if prisma_client is not None and spend_logs_url is not None:
|
||||
if isinstance(payload["startTime"], datetime):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue