aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-10-26 11:36:39 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-10-26 11:39:40 +0200
commit35bf7fc94e01f2104078928989d581583095690f (patch)
tree5c14979fc2b95e2a399c9a1a5fc822d683f8a7b9 /apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
parent154bb535380ad892e66d2a83be3e0622e9d7bba5 (diff)
downloadnextcloud-server-35bf7fc94e01f2104078928989d581583095690f.tar.gz
nextcloud-server-35bf7fc94e01f2104078928989d581583095690f.zip
fix(TextToImage): Fix copypasta
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'apps/settings/lib/Settings/Admin/ArtificialIntelligence.php')
-rw-r--r--apps/settings/lib/Settings/Admin/ArtificialIntelligence.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
index 3a5340eba2e..0af82a74c5e 100644
--- a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
+++ b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
@@ -120,7 +120,7 @@ class ArtificialIntelligence implements IDelegatedSettings {
'ai.stt_provider' => count($sttProviders) > 0 ? $sttProviders[0]['class'] : null,
'ai.textprocessing_provider_preferences' => $textProcessingSettings,
'ai.translation_provider_preferences' => $translationPreferences,
- 'ai.text2image_provider' => count($text2imageProviders) > 0 ? $text2imageProviders[0]['class'] : null,
+ 'ai.text2image_provider' => count($text2imageProviders) > 0 ? $text2imageProviders[0]['id'] : null,
];
foreach ($settings as $key => $defaultValue) {
$value = $defaultValue;