]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(settings): Remove STT admin settings
authorMarcel Klehr <mklehr@gmx.net>
Fri, 30 Aug 2024 07:15:59 +0000 (09:15 +0200)
committerJulien Veyssier <julien-nc@posteo.net>
Fri, 30 Aug 2024 12:06:15 +0000 (14:06 +0200)
taskprocessing is transparent to STT providers so specific STT settings are obsolete

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
apps/settings/src/components/AdminAI.vue

index dc64f64e65b95cd9a44e260b1d6fcc2feb283430..7a7ddca04c5de9c55c50efab3d39679d68440b45 100644 (file)
                                </div>
                        </draggable>
                </NcSettingsSection>
-               <NcSettingsSection :name="t('settings', 'Speech-To-Text')"
-                       :description="t('settings', 'Speech-To-Text can be implemented by different apps. Here you can set which app should be used.')">
-                       <template v-for="provider in sttProviders">
-                               <NcCheckboxRadioSwitch :key="provider.class"
-                                       :checked.sync="settings['ai.stt_provider']"
-                                       :value="provider.class"
-                                       name="stt_provider"
-                                       type="radio"
-                                       @update:checked="saveChanges">
-                                       {{ provider.name }}
-                               </NcCheckboxRadioSwitch>
-                       </template>
-                       <template v-if="!hasStt">
-                               <NcNoteCard type="info">
-                                       {{ t('settings', 'None of your currently installed apps provide Speech-To-Text functionality') }}
-                               </NcNoteCard>
-                       </template>
-               </NcSettingsSection>
                <NcSettingsSection :name="t('settings', 'Image generation')"
                        :description="t('settings', 'Image generation can be implemented by different apps. Here you can set which app should be used.')">
                        <template v-for="provider in text2imageProviders">
@@ -162,9 +144,6 @@ export default {
                }
        },
        computed: {
-               hasStt() {
-                       return this.sttProviders.length > 0
-               },
                hasTextProcessing() {
                        return Object.keys(this.settings['ai.textprocessing_provider_preferences']).length > 0 && Array.isArray(this.textProcessingTaskTypes)
                },