Make primary language for OpenAI STT German

This commit is contained in:
Phil Szalay 2025-03-18 15:00:57 +01:00
parent 458485b097
commit cf2be9c082
2 changed files with 2 additions and 3 deletions

View File

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

View File

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