Skip to content

Commit d7ddeed

Browse files
kyteinskyjulien-nc
andauthored
Update lib/Migration/Version030104Date20241011192830.php
Co-authored-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent 11ff2aa commit d7ddeed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Migration/Version030104Date20241011192830.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(
2828
*/
2929
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
3030
$value = $this->openAiSettingsService->getServiceUrl();
31-
if ($value !== '' && strpos($value, '/v1') === false) {
31+
if ($value !== '' && !str_ends_with($value, '/v1') && !str_ends_with($value, '/v1/') {
3232
$newValue = rtrim($value, '/') . '/v1';
3333
$this->openAiSettingsService->setServiceUrl($newValue);
3434
}

0 commit comments

Comments
 (0)