Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion litellm/proxy/proxy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -5486,6 +5486,7 @@ async def audio_transcriptions(
file_object = io.BytesIO(file_content)
file_object.name = file.filename
data["file"] = file_object

try:
### CALL HOOKS ### - modify incoming data / reject request before calling the model
data = await proxy_logging_obj.pre_call_hook(
Expand All @@ -5503,7 +5504,7 @@ async def audio_transcriptions(
)
response = await llm_call
except Exception as e:
raise HTTPException(status_code=500, detail=str(e))
raise e
finally:
file_object.close() # close the file read in by io library

Expand Down
Loading