mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
fix(settings): Don't display built-in task types in AI settings TextProcessing
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
b7bd5b0012
commit
44a5723973
1 changed files with 6 additions and 6 deletions
|
|
@ -90,9 +90,9 @@
|
|||
<p> </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>
|
||||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue