Skip to content

Commit 65351a7

Browse files
committed
Fix missing entry in array shape.
1 parent 48a4c79 commit 65351a7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Providers/Models/DTO/ModelConfig.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
* logprobs?: bool,
3636
* topLogprobs?: int,
3737
* tools?: list<ToolArrayShape>,
38+
* outputFileType?: string,
3839
* outputMimeType?: string,
3940
* outputSchema?: array<string, mixed>,
4041
* customOptions?: array<string, mixed>
@@ -850,11 +851,6 @@ public static function fromArray(array $array): self
850851
}
851852

852853
if (isset($array[self::KEY_OUTPUT_FILE_TYPE])) {
853-
if (!is_string($array[self::KEY_OUTPUT_FILE_TYPE])) {
854-
throw new InvalidArgumentException(
855-
'Output file type must be a string.'
856-
);
857-
}
858854
$config->setOutputFileType(FileTypeEnum::from($array[self::KEY_OUTPUT_FILE_TYPE]));
859855
}
860856

0 commit comments

Comments
 (0)