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

fix: Make STT model configurable
This commit is contained in:
Timothy Jaeryang Baek 2024-06-25 15:26:57 -07:00 committed by GitHub
commit 70c985feec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)