File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,11 @@ public static function getJsonSchema(): array
335
335
'oneOf ' => [
336
336
[
337
337
'properties ' => [
338
+ 'fileType ' => [
339
+ 'type ' => 'string ' ,
340
+ 'const ' => FileTypeEnum::REMOTE ,
341
+ 'description ' => 'The file type. ' ,
342
+ ],
338
343
'mimeType ' => [
339
344
'type ' => 'string ' ,
340
345
'description ' => 'The MIME type of the file. ' ,
@@ -347,10 +352,15 @@ public static function getJsonSchema(): array
347
352
'description ' => 'The URL to the remote file. ' ,
348
353
],
349
354
],
350
- 'required ' => ['mimeType ' , 'url ' ],
355
+ 'required ' => ['fileType ' , ' mimeType ' , 'url ' ],
351
356
],
352
357
[
353
358
'properties ' => [
359
+ 'fileType ' => [
360
+ 'type ' => 'string ' ,
361
+ 'const ' => FileTypeEnum::INLINE ,
362
+ 'description ' => 'The file type. ' ,
363
+ ],
354
364
'mimeType ' => [
355
365
'type ' => 'string ' ,
356
366
'description ' => 'The MIME type of the file. ' ,
@@ -362,7 +372,7 @@ public static function getJsonSchema(): array
362
372
'description ' => 'The base64-encoded file data. ' ,
363
373
],
364
374
],
365
- 'required ' => ['mimeType ' , 'base64Data ' ],
375
+ 'required ' => ['fileType ' , ' mimeType ' , 'base64Data ' ],
366
376
],
367
377
],
368
378
];
You can’t perform that action at this time.
0 commit comments