Skip to content

Commit

Permalink
fix(settings): Don't display built-in task types in AI settings TextP…
Browse files Browse the repository at this point in the history
…rocessing

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Sep 3, 2024
1 parent b7bd5b0 commit 44a5723
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/settings/src/components/AdminAI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@
<p>&nbsp;</p>
</div>
</template>
<template v-if="!hasTextProcessing">
<template v-if="tpTaskTypes.length === 0">
<NcNoteCard type="info">
{{ t('settings', 'None of your currently installed apps provide Text processing functionality') }}
{{ t('settings', 'None of your currently installed apps provide custom Text processing functionality.') }}
</NcNoteCard>
</template>
</NcSettingsSection>
Expand Down Expand Up @@ -149,10 +149,10 @@ export default {
},
tpTaskTypes() {
const builtinTextProcessingTypes = [
'\\OCP\\TextProcessing\\FreePromptTaskType',
'\\OCP\\TextProcessing\\HeadlineTaskType',
'\\OCP\\TextProcessing\\SummaryTaskType',
'\\OCP\\TextProcessing\\TopicsTaskType',
'OCP\\TextProcessing\\FreePromptTaskType',
'OCP\\TextProcessing\\HeadlineTaskType',
'OCP\\TextProcessing\\SummaryTaskType',
'OCP\\TextProcessing\\TopicsTaskType',
]
return Object.keys(this.settings['ai.textprocessing_provider_preferences'])
.filter(type => !!this.getTextProcessingTaskType(type))
Expand Down

0 comments on commit 44a5723

Please sign in to comment.