aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/lib/Settings/Admin/ArtificialIntelligence.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
index 0af82a74c5e..7a4a3538267 100644
--- a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
+++ b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
@@ -83,7 +83,9 @@ class ArtificialIntelligence implements IDelegatedSettings {
'name' => $provider->getName(),
'taskType' => $provider->getTaskType(),
];
- $textProcessingSettings[$provider->getTaskType()] = $provider::class;
+ if (!isset($textProcessingSettings[$provider->getTaskType()])) {
+ $textProcessingSettings[$provider->getTaskType()] = $provider::class;
+ }
}
$textProcessingTaskTypes = [];
foreach ($textProcessingSettings as $taskTypeClass => $providerClass) {