From 044bd0038637b8333ad52a79df8a290e5b7c611c Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Tue, 25 Jun 2024 21:46:12 +0000 Subject: [PATCH] Make STT model configurable --- backend/apps/audio/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/audio/main.py b/backend/apps/audio/main.py index 663e20c97..8843f376f 100644 --- a/backend/apps/audio/main.py +++ b/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)