diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte
index 4ae24d0846..15debe669c 100644
--- a/src/lib/components/chat/Settings/Interface.svelte
+++ b/src/lib/components/chat/Settings/Interface.svelte
@@ -998,6 +998,27 @@
+ {#if $config?.features?.enable_autocomplete_generation}
+
+
+
+ {$i18n.t('Prompt Autocompletion')}
+
+
+
+ {
+ saveSettings({ promptAutocomplete });
+ }}
+ />
+
+
+
+ {/if}
+
{#if richTextInput}
-
- {#if $config?.features?.enable_autocomplete_generation}
-
-
-
- {$i18n.t('Prompt Autocompletion')}
-
-
-
- {
- saveSettings({ promptAutocomplete });
- }}
- />
-
-
-
- {/if}
{/if}
diff --git a/src/lib/components/common/RichTextInput.svelte b/src/lib/components/common/RichTextInput.svelte
index d01e0f007f..9f352c1b02 100644
--- a/src/lib/components/common/RichTextInput.svelte
+++ b/src/lib/components/common/RichTextInput.svelte
@@ -725,7 +725,7 @@
})
]
: []),
- ...(richText && autocomplete
+ ...(autocomplete
? [
AIAutocompletion.configure({
generateCompletion: async (text) => {