mirror of
https://github.com/open-webui/open-webui
synced 2025-05-19 04:43:00 +00:00
Make STT model configurable
This commit is contained in:
parent
9e4dd4b86f
commit
044bd00386
@ -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 New Issue
Block a user