diff --git a/src/lib/components/chat/Settings/Audio.svelte b/src/lib/components/chat/Settings/Audio.svelte index 9a38d7ab..32a71dc1 100644 --- a/src/lib/components/chat/Settings/Audio.svelte +++ b/src/lib/components/chat/Settings/Audio.svelte @@ -1,5 +1,6 @@ @@ -114,7 +117,9 @@
{ - await updateConfigHandler(); + if ($user.role === 'admin') { + await updateConfigHandler(); + } saveSettings({ audio: { STTEngine: STTEngine !== '' ? STTEngine : undefined, @@ -220,22 +225,24 @@ - {#if TTSEngine === 'openai'} -
- + {#if $user.role === 'admin'} + {#if TTSEngine === 'openai'} +
+ - -
+ +
+ {/if} {/if}
@@ -265,7 +272,7 @@