fix: keep the speech-to-text extension allowlist when the Audio settings are saved (#30208)

This commit is contained in:
G30
2026-09-19 17:36:38 -04:00
committed by GitHub
parent 881f7c9400
commit 65a3a115eb
+2 -2
View File
@@ -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),
}
)