mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Merge 21cb1cdd65 into a2c814654e
This commit is contained in:
commit
dcb1f64e18
1 changed files with 4 additions and 0 deletions
|
|
@ -10989,6 +10989,10 @@ async def audio_transcriptions(
|
|||
if callback_headers:
|
||||
fastapi_response.headers.update(callback_headers)
|
||||
|
||||
if data.get("response_format") in ("text", "srt", "vtt"):
|
||||
from fastapi.responses import Response as FastAPIResponse
|
||||
return FastAPIResponse(content=response.text, media_type="text/plain")
|
||||
|
||||
return response
|
||||
except Exception as e:
|
||||
await proxy_logging_obj.post_call_failure_hook(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue