Skip to content

Commit 11ff2aa

Browse files
committed
fix: do not add /v1 twice to the service url
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent 4e4746c commit 11ff2aa

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 !== '') {
31+
if ($value !== '' && strpos($value, '/v1') === false) {
3232
$newValue = rtrim($value, '/') . '/v1';
3333
$this->openAiSettingsService->setServiceUrl($newValue);
3434
}

0 commit comments

Comments
 (0)