WHISPER_LANGUAGE no longer a "PersistentConfig" variable (Was not appropriate with how WHISPER_LANGUAGE is currently configured).

This commit is contained in:
nathaniel
2025-05-01 21:33:57 +01:00
parent 1efa708f83
commit ef7acfbf3d
3 changed files with 3 additions and 7 deletions

View File

@@ -33,6 +33,7 @@ from open_webui.config import (
WHISPER_MODEL_AUTO_UPDATE,
WHISPER_MODEL_DIR,
CACHE_DIR,
WHISPER_LANGUAGE
)
from open_webui.constants import ERROR_MESSAGES
@@ -501,7 +502,7 @@ def transcribe(request: Request, file_path):
file_path,
beam_size=5,
vad_filter=request.app.state.config.WHISPER_VAD_FILTER,
language=request.app.state.config.WHISPER_LANGUAGE
language=WHISPER_LANGUAGE
)
log.info(
"Detected language '%s' with probability %f"