fix: apply the new text to speech engine's default voice and model when the engine changes (#30289)

This commit is contained in:
G30 2026-09-21 00:30:26 -04:00 • committed by GitHub
parent 043784c2d0
commit f847c6a588
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -490,10 +490,6 @@
bind:value={TTS_ENGINE}
placeholder={$i18n.t('Select a mode')}
on:change={async (e) => {
await updateConfigHandler();
await getVoices();
await getModels();
const value = (e.currentTarget as HTMLSelectElement).value;
if (value === 'openai') {
@ -506,6 +502,10 @@
TTS_VOICE = '';
TTS_MODEL = '';
}
await updateConfigHandler();
await getVoices();
await getModels();
}}
>
<option value="">{$i18n.t('Web API')}</option>