Explorar el Código

Make STT model configurable

Ben Zhang hace 10 meses
padre
commit
044bd00386
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      backend/apps/audio/main.py

+ 1 - 1
backend/apps/audio/main.py

@@ -325,7 +325,7 @@ def transcribe(
             headers = {"Authorization": f"Bearer {app.state.config.STT_OPENAI_API_KEY}"}
 
             files = {"file": (filename, open(file_path, "rb"))}
-            data = {"model": "whisper-1"}
+            data = {"model": app.state.config.STT_MODEL}
 
             print(files, data)