mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
fix: keep the speech-to-text extension allowlist when the Audio settings are saved (#30208)
This commit is contained in:
parent
881f7c9400
commit
65a3a115eb
1 changed files with 2 additions and 2 deletions
|
|
@ -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),
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue