mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-25 17:00:52 -04:00
fix: keep the speech-to-text extension allowlist when the Audio settings are saved (#30208)
This commit is contained in:
@@ -297,8 +297,8 @@ async def update_audio_config(request: Request, form_data: AudioConfigUpdateForm
|
||||
raise HTTPException(400, 'Local TTS is unavailable in slim. Select an external text-to-speech engine.')
|
||||
await Config.upsert(
|
||||
{
|
||||
**config_updates(form_data.tts.model_dump(), TTS_CONFIG_KEYS),
|
||||
**config_updates(form_data.stt.model_dump(), STT_CONFIG_KEYS),
|
||||
**config_updates(form_data.tts.model_dump(exclude_unset=True), TTS_CONFIG_KEYS),
|
||||
**config_updates(form_data.stt.model_dump(exclude_unset=True), STT_CONFIG_KEYS),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user