mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
fix: apply the new text to speech engine's default voice and model when the engine changes (#30289)
This commit is contained in:
parent
043784c2d0
commit
f847c6a588
1 changed files with 4 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue