From cc14aacaaa6248426aa4bd1c3b2ee984b4ba850b Mon Sep 17 00:00:00 2001 From: nathaniel Date: Thu, 1 May 2025 22:03:49 +0100 Subject: [PATCH] Improvements to parsing of WHISPER_LANGUAGE environment variable (Setting as empty string now equivalent to unsetting/removing WHISPER_LANGUAGE). Resolved crash caused when unset --- backend/open_webui/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index b5d37cc8e..6d4ddc7e6 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -2510,7 +2510,7 @@ WHISPER_VAD_FILTER = PersistentConfig( os.getenv("WHISPER_VAD_FILTER", "False").lower() == "true", ) -WHISPER_LANGUAGE = os.getenv("WHISPER_LANGUAGE", None).lower() +WHISPER_LANGUAGE = os.getenv("WHISPER_LANGUAGE", "").lower() or None # Add Deepgram configuration DEEPGRAM_API_KEY = PersistentConfig(