We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a4c79 commit 65351a7Copy full SHA for 65351a7
src/Providers/Models/DTO/ModelConfig.php
@@ -35,6 +35,7 @@
35
* logprobs?: bool,
36
* topLogprobs?: int,
37
* tools?: list<ToolArrayShape>,
38
+ * outputFileType?: string,
39
* outputMimeType?: string,
40
* outputSchema?: array<string, mixed>,
41
* customOptions?: array<string, mixed>
@@ -850,11 +851,6 @@ public static function fromArray(array $array): self
850
851
}
852
853
if (isset($array[self::KEY_OUTPUT_FILE_TYPE])) {
- if (!is_string($array[self::KEY_OUTPUT_FILE_TYPE])) {
854
- throw new InvalidArgumentException(
855
- 'Output file type must be a string.'
856
- );
857
- }
858
$config->setOutputFileType(FileTypeEnum::from($array[self::KEY_OUTPUT_FILE_TYPE]));
859
860
0 commit comments