Skip to content

Commit d5aa416

Browse files
committed
minor #649 [Platform][OpenAI] No alias (OskarStark)
This PR was merged into the main branch. Discussion ---------- [Platform][OpenAI] No alias | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | -- | License | MIT Commits ------- 585f502 [Platform][OpenAI] No alias
2 parents 0705529 + 585f502 commit d5aa416

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/platform/src/Bridge/OpenAi/PlatformFactory.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
namespace Symfony\AI\Platform\Bridge\OpenAi;
1313

1414
use Symfony\AI\Platform\Bridge\OpenAi\Contract\OpenAiContract;
15-
use Symfony\AI\Platform\Bridge\OpenAi\Whisper\ModelClient as WhisperModelClient;
16-
use Symfony\AI\Platform\Bridge\OpenAi\Whisper\ResultConverter as WhisperResponseConverter;
1715
use Symfony\AI\Platform\Contract;
1816
use Symfony\AI\Platform\Platform;
1917
use Symfony\Component\HttpClient\EventSourceHttpClient;
@@ -40,13 +38,13 @@ public static function create(
4038
new Gpt\ModelClient($httpClient, $apiKey, $region),
4139
new Embeddings\ModelClient($httpClient, $apiKey, $region),
4240
new DallE\ModelClient($httpClient, $apiKey, $region),
43-
new WhisperModelClient($httpClient, $apiKey, $region),
41+
new Whisper\ModelClient($httpClient, $apiKey, $region),
4442
],
4543
[
4644
new Gpt\ResultConverter(),
4745
new Embeddings\ResultConverter(),
4846
new DallE\ResultConverter(),
49-
new WhisperResponseConverter(),
47+
new Whisper\ResultConverter(),
5048
],
5149
$contract ?? OpenAiContract::create(),
5250
);

0 commit comments

Comments
 (0)