diff --git a/lib/Migration/Version030104Date20241011192830.php b/lib/Migration/Version030104Date20241011192830.php index 4a58f42d..84babe4b 100644 --- a/lib/Migration/Version030104Date20241011192830.php +++ b/lib/Migration/Version030104Date20241011192830.php @@ -28,7 +28,7 @@ public function __construct( */ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { $value = $this->openAiSettingsService->getServiceUrl(); - if ($value !== '') { + if ($value !== '' && !str_ends_with(rtrim($value, '/ '), '/v1')) { $newValue = rtrim($value, '/') . '/v1'; $this->openAiSettingsService->setServiceUrl($newValue); }