mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
Merge pull request #3447 from ben-z/stt-model-configurable
fix: Make STT model configurable
This commit is contained in:
commit
70c985feec
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue