소스 검색

Merge pull request #3447 from ben-z/stt-model-configurable

fix: Make STT model configurable
Timothy Jaeryang Baek 10 달 전
부모
커밋
70c985feec
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}"}
             headers = {"Authorization": f"Bearer {app.state.config.STT_OPENAI_API_KEY}"}
 
 
             files = {"file": (filename, open(file_path, "rb"))}
             files = {"file": (filename, open(file_path, "rb"))}
-            data = {"model": "whisper-1"}
+            data = {"model": app.state.config.STT_MODEL}
 
 
             print(files, data)
             print(files, data)