Forráskód Böngészése

refac: audio transcribe supported filetype

Timothy Jaeryang Baek 5 hónapja
szülő
commit
7b36466c1c
1 módosított fájl, 7 hozzáadás és 1 törlés
  1. 7 1
      backend/open_webui/routers/audio.py

+ 7 - 1
backend/open_webui/routers/audio.py

@@ -789,7 +789,13 @@ def transcription(
 ):
     log.info(f"file.content_type: {file.content_type}")
 
-    supported_filetypes = ("audio/mpeg", "audio/wav", "audio/ogg", "audio/x-m4a")
+    supported_filetypes = (
+        "audio/mpeg",
+        "audio/wav",
+        "audio/ogg",
+        "audio/x-m4a",
+        "audio/webm",
+    )
 
     if not file.content_type.startswith(supported_filetypes):
         raise HTTPException(