mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix: when no AI setting has been set, make sure the selected text processing provider is the same as the one that will be used
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
parent
6528cdd78e
commit
52de9ea515
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue