From cf2be9c082cc1435d27e29d9116733fee1645b1e Mon Sep 17 00:00:00 2001 From: Phil Szalay Date: Tue, 18 Mar 2025 15:00:57 +0100 Subject: [PATCH] Make primary language for OpenAI STT German --- backend/{open_webui => beyond_the_loop}/routers/audio.py | 2 +- backend/open_webui/main.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) rename backend/{open_webui => beyond_the_loop}/routers/audio.py (99%) diff --git a/backend/open_webui/routers/audio.py b/backend/beyond_the_loop/routers/audio.py similarity index 99% rename from backend/open_webui/routers/audio.py rename to backend/beyond_the_loop/routers/audio.py index c1b15772b..8e17821e9 100644 --- a/backend/open_webui/routers/audio.py +++ b/backend/beyond_the_loop/routers/audio.py @@ -495,7 +495,7 @@ def transcribe(request: Request, file_path): "Authorization": f"Bearer {request.app.state.config.STT_OPENAI_API_KEY}" }, files={"file": (filename, open(file_path, "rb"))}, - data={"model": request.app.state.config.STT_MODEL}, + data={"model": request.app.state.config.STT_MODEL, "language": "de"}, ) r.raise_for_status() diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index 4adafd6cd..90ce23499 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -39,7 +39,6 @@ from open_webui.socket.main import ( periodic_usage_pool_cleanup, ) from open_webui.routers import ( - audio, images, ollama, retrieval, @@ -61,7 +60,7 @@ from open_webui.routers import ( users, utils, ) -from beyond_the_loop.routers import openai +from beyond_the_loop.routers import openai, audio from open_webui.routers.retrieval import ( get_embedding_function,