1212namespace Symfony \AI \Platform \Bridge \OpenAi ;
1313
1414use 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 ;
1715use Symfony \AI \Platform \Contract ;
1816use Symfony \AI \Platform \Platform ;
1917use 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