mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
Merge 21cb1cdd65 into 941f52f26f
This commit is contained in:
commit
e4094ea0fe
1 changed files with 4 additions and 0 deletions
|
|
@ -13678,6 +13678,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