fix: return 400 instead of 500 when file field is missing in audio-to-text endpoints (#39303) (#39322)

This commit is contained in:
shakti
2026-07-21 02:19:24 +00:00
committed by GitHub
parent 8f075c82bc
commit 6a338654fb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ class AudioApi(Resource):
Accepts an audio file upload and returns the transcribed text.
"""
file = request.files["file"]
file = request.files.get("file")
try:
response = AudioService.transcript_asr(