浏览代码

Make STT model configurable

Ben Zhang 10 月之前
父节点
当前提交
044bd00386
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)