Skip to content

Commit

Permalink
Merge pull request #44343 from nextcloud/backport/43993/stable28
Browse files Browse the repository at this point in the history
[stable28] Fix default text processing provider in AI settings
  • Loading branch information
julien-nc authored Apr 8, 2024
2 parents 6528cdd + 52de9ea commit f89dabb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public function getForm() {
'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) {
Expand Down

0 comments on commit f89dabb

Please sign in to comment.