diff --git a/src/lib/components/chat/Settings/AddOns.svelte b/src/lib/components/chat/Settings/AddOns.svelte deleted file mode 100644 index 519faf0c..00000000 --- a/src/lib/components/chat/Settings/AddOns.svelte +++ /dev/null @@ -1,249 +0,0 @@ - - -
{ - saveSettings({ - speakVoice: speakVoice !== '' ? speakVoice : undefined - }); - dispatch('save'); - }} -> -
-
-
WebUI Add-ons
- -
-
-
Title Auto-Generation
- - -
-
- -
-
-
Voice Input Auto-Send
- - -
-
- -
-
-
Response AutoCopy to Clipboard
- - -
-
-
- -
- -
-
Set Title Auto-Generation Model
-
-
- -
- -
-
- -
- -
-
-
Set Default Voice
-
-
- -
-
-
-
- - -
- -
- -
-
diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte index 50a8fe40..4c142a38 100644 --- a/src/lib/components/chat/Settings/Interface.svelte +++ b/src/lib/components/chat/Settings/Interface.svelte @@ -1,13 +1,54 @@ @@ -27,62 +76,130 @@ dispatch('save'); }} > -
-
-
Default Prompt Suggestions
+
+
+
WebUI Add-ons
- -
-
- {#each promptSuggestions as prompt, promptIdx} -
-
-
- - - -
- - -
+
+
+
Title Auto-Generation
+
+
+ +
+
+
Voice Input Auto-Send
+ + +
+
+ +
+
+
Response AutoCopy to Clipboard
+ + +
+
+
+ +
+ +
+
Set Title Auto-Generation Model
+
+
+ +
+ +
+
+ + {#if $user.role === 'admin'} +
+ +
+
+
Default Prompt Suggestions
+ +
- {/each} -
+
+ {#each promptSuggestions as prompt, promptIdx} +
+
+
+ - {#if promptSuggestions.length > 0} -
- Adjusting these settings will apply changes universally to all users. + +
+ + +
+ + +
+ {/each} +
+ + {#if promptSuggestions.length > 0} +
+ Adjusting these settings will apply changes universally to all users. +
+ {/if}
{/if}
diff --git a/src/lib/components/chat/Settings/Voice.svelte b/src/lib/components/chat/Settings/Voice.svelte new file mode 100644 index 00000000..8e724c9f --- /dev/null +++ b/src/lib/components/chat/Settings/Voice.svelte @@ -0,0 +1,93 @@ + + +
{ + saveSettings({ + speakVoice: speakVoice !== '' ? speakVoice : undefined + }); + dispatch('save'); + }} +> +
+
+
+
Set Default Voice
+
+
+ +
+
+
+
+ + +
+ +
+ +
+
diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte index 8c06ccdc..83b2e307 100644 --- a/src/lib/components/chat/SettingsModal.svelte +++ b/src/lib/components/chat/SettingsModal.svelte @@ -13,7 +13,7 @@ import General from './Settings/General.svelte'; import External from './Settings/External.svelte'; import Interface from './Settings/Interface.svelte'; - import AddOns from './Settings/AddOns.svelte'; + import Voice from './Settings/Voice.svelte'; import Chats from './Settings/Chats.svelte'; export let show = false; @@ -176,56 +176,59 @@
External
- - {/if} + +