mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-21 13:38:19 -05:00
fix: apply the new text to speech engine's default voice and model when the engine changes (#30289)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user