Skip to content

Commit 948eaa5

Browse files
committed
ref
1 parent 6c5dc38 commit 948eaa5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/platform/src/Bridge/AiMlApi/PlatformFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class PlatformFactory
2626
{
2727
public static function create(
2828
#[\SensitiveParameter] string $apiKey,
29-
string $baseUrl = 'https://api.aimlapi.com',
3029
?HttpClientInterface $httpClient = null,
3130
?Contract $contract = null,
31+
string $baseUrl = 'https://api.aimlapi.com',
3232
?SpeechConfiguration $speechConfiguration = new SpeechConfiguration(),
3333
?EventDispatcherInterface $eventDispatcher = null,
3434
): Platform {

src/platform/src/Bridge/Generic/PlatformFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Symfony\AI\Platform\ModelCatalog\FallbackModelCatalog;
1717
use Symfony\AI\Platform\ModelCatalog\ModelCatalogInterface;
1818
use Symfony\AI\Platform\Platform;
19+
use Symfony\AI\Platform\Speech\SpeechConfiguration;
1920
use Symfony\Component\HttpClient\EventSourceHttpClient;
2021
use Symfony\Contracts\HttpClient\HttpClientInterface;
2122

@@ -30,6 +31,7 @@ public static function create(
3031
?HttpClientInterface $httpClient = null,
3132
ModelCatalogInterface $modelCatalog = new FallbackModelCatalog(),
3233
?Contract $contract = null,
34+
?SpeechConfiguration $speechConfiguration = new SpeechConfiguration(),
3335
?EventDispatcherInterface $eventDispatcher = null,
3436
bool $supportsCompletions = true,
3537
bool $supportsEmbeddings = true,
@@ -49,6 +51,6 @@ public static function create(
4951
$resultConverters[] = new Embeddings\ResultConverter();
5052
}
5153

52-
return new Platform($modelClients, $resultConverters, $modelCatalog, $contract, $eventDispatcher);
54+
return new Platform($modelClients, $resultConverters, $modelCatalog, $contract, $speechConfiguration, $eventDispatcher);
5355
}
5456
}

0 commit comments

Comments
 (0)