From a1fafa0896fdf78bef3098d06f75ce14e1717d9f Mon Sep 17 00:00:00 2001 From: Lukas Schaefer Date: Thu, 14 May 2026 11:46:50 +0200 Subject: [PATCH] Switch from dall-e-2 to gpt-image-1-mini Signed-off-by: Lukas Schaefer --- lib/AppInfo/Application.php | 2 +- lib/Service/OpenAiAPIService.php | 2 +- src/components/AdminSettings.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 34c1941b..bd8a8cad 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -43,7 +43,7 @@ class Application extends App implements IBootstrap { public const DEFAULT_MODEL_ID = 'Default'; public const DEFAULT_COMPLETION_MODEL_ID = 'gpt-4.1-mini'; - public const DEFAULT_IMAGE_MODEL_ID = 'dall-e-2'; + public const DEFAULT_IMAGE_MODEL_ID = 'gpt-image-1-mini'; public const DEFAULT_TRANSCRIPTION_MODEL_ID = 'whisper-1'; public const DEFAULT_SPEECH_MODEL_ID = 'tts-1-hd'; public const DEFAULT_SPEECH_VOICE = 'alloy'; diff --git a/lib/Service/OpenAiAPIService.php b/lib/Service/OpenAiAPIService.php index c3f2b25a..7519d26c 100644 --- a/lib/Service/OpenAiAPIService.php +++ b/lib/Service/OpenAiAPIService.php @@ -93,7 +93,7 @@ public function isUsingOpenAi(?string $serviceType = null): bool { public function getServiceName(?string $serviceType = null): string { if ($this->isUsingOpenAi($serviceType)) { if ($serviceType === Application::SERVICE_TYPE_IMAGE) { - return $this->l10n->t('OpenAI\'s DALL-E 2'); + return $this->l10n->t('OpenAI\'s Image Generation'); } if ($serviceType === Application::SERVICE_TYPE_TTS) { $this->l10n->t('OpenAI\'s Text to Speech'); diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue index 261b12c7..01551409 100644 --- a/src/components/AdminSettings.vue +++ b/src/components/AdminSettings.vue @@ -822,7 +822,7 @@ export default { const defaultImageModelId = this.state.default_image_model_id const imageModelToSelect = this.imageModels.find(m => m.id === defaultImageModelId) - || this.imageModels.find(m => m.id === 'dall-e-2') + || this.imageModels.find(m => m.id.match(/image/i)) || this.imageModels[1] || this.imageModels[0]