forked from phoenix/litellm-mirror
feat: add cost tracking + caching for transcription calls
This commit is contained in:
parent
e10991e02b
commit
fa45c569fd
8 changed files with 225 additions and 37 deletions
|
@ -3282,6 +3282,7 @@ async def audio_transcriptions(
|
|||
user_api_key_dict, "team_id", None
|
||||
)
|
||||
data["metadata"]["endpoint"] = str(request.url)
|
||||
data["metadata"]["file_name"] = file.filename
|
||||
|
||||
### TEAM-SPECIFIC PARAMS ###
|
||||
if user_api_key_dict.team_id is not None:
|
||||
|
@ -3316,7 +3317,7 @@ async def audio_transcriptions(
|
|||
data = await proxy_logging_obj.pre_call_hook(
|
||||
user_api_key_dict=user_api_key_dict,
|
||||
data=data,
|
||||
call_type="moderation",
|
||||
call_type="audio_transcription",
|
||||
)
|
||||
|
||||
## ROUTE TO CORRECT ENDPOINT ##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue