@@ -124,7 +124,7 @@ class OpenAIProvider extends AbstractProvider implements ChatInterface, ModelInt
124
124
*
125
125
* @since __DEPLOY_VERSION__
126
126
*/
127
- public function __construct (array $ options = [], ?HttpFactory $ httpFactory = null )
127
+ public function __construct ($ options = [], ?HttpFactory $ httpFactory = null )
128
128
{
129
129
parent ::__construct ($ options , $ httpFactory );
130
130
@@ -573,8 +573,6 @@ public function editImage($images, string $prompt, array $options = []): Respons
573
573
* Generate speech audio from text input.
574
574
*
575
575
* @param string $text The text to convert to speech
576
- * @param string $model The model to use for speech synthesis
577
- * @param string $voice The voice to use for speech synthesis
578
576
* @param array $options Additional options for speech generation
579
577
*
580
578
* @return Response
@@ -602,7 +600,6 @@ public function speech(string $text, array $options = []): Response
602
600
* Transcribe audio into text.
603
601
*
604
602
* @param string $audioFile Path to audio file
605
- * @param string $model The transcription model to use
606
603
* @param array $options Additional options for transcription
607
604
*
608
605
* @return Response The AI response containing transcribed text
@@ -627,7 +624,6 @@ public function transcribe(string $audioFile, array $options = []): Response
627
624
* Translate audio to English text.
628
625
*
629
626
* @param string $audioFile Path to audio file
630
- * @param string $model Model to use for translation
631
627
* @param array $options Additional options
632
628
*
633
629
* @return Response Translation response
@@ -722,7 +718,6 @@ public function moderate($input, array $options = []): array
722
718
* @param array $moderationResult Result from moderate() method
723
719
*
724
720
* @return bool
725
- * @throws \InvalidArgumentException
726
721
* @since __DEPLOY_VERSION__
727
722
*/
728
723
public function isContentFlagged (array $ moderationResult ): bool
@@ -909,7 +904,6 @@ private function buildVisionRequestPayload(string $message, string $image, strin
909
904
*
910
905
* @param string $prompt The image generation prompt.
911
906
* @param array $options Additional options for the request.
912
- * @param string $capability Required capability.
913
907
*
914
908
* @return array The request payload.
915
909
* @since __DEPLOY_VERSION__
@@ -1194,8 +1188,6 @@ private function buildImageEditPayload($images, string $prompt, array $options):
1194
1188
* Build payload for text-to-speech request.
1195
1189
*
1196
1190
* @param string $text The text to convert to speech
1197
- * @param string $model The model to use for speech synthesis
1198
- * @param string $voice The voice to use for speech synthesis
1199
1191
* @param array $options Additional options for speech generation
1200
1192
*
1201
1193
* @return array The request payload.
@@ -1268,7 +1260,6 @@ private function buildSpeechPayload(string $text, array $options): array
1268
1260
* Build payload for transcription request.
1269
1261
*
1270
1262
* @param string $audioFile The audio file
1271
- * @param string $model The transcription model
1272
1263
* @param array $options Additional options
1273
1264
*
1274
1265
* @return array Form data for multipart request
@@ -1378,7 +1369,6 @@ private function buildTranscriptionPayload(string $audioFile, array $options): a
1378
1369
* Build payload for translation request.
1379
1370
*
1380
1371
* @param string $audioFile Path to the audio file
1381
- * @param string $model The translation model to use
1382
1372
* @param array $options Additional options for translation
1383
1373
*
1384
1374
* @return array Form data for multipart request
0 commit comments