File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,19 @@ public struct ModelContent: Equatable {
28
28
/// Data with a specified media type. Not all media types may be supported by the AI model.
29
29
case data( mimetype: String , Data )
30
30
31
- /// URI-based data with a specified media type .
31
+ /// File data stored in Cloud Storage for Firebase, referenced by URI .
32
32
///
33
- /// > Note: Supported media types depends on the model; see [supported file formats
33
+ /// > Note: Supported media types depends on the model; see [media requirements
34
34
/// > ](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements)
35
35
/// > for details.
36
+ ///
37
+ /// - Parameters:
38
+ /// - mimetype: The IANA standard MIME type of the uploaded file, for example, `"image/jpeg"`
39
+ /// or `"video/mp4"`; see [media requirements
40
+ /// ](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements)
41
+ /// for supported values.
42
+ /// - uri: The `"gs://"`-prefixed URI of the file in Cloud Storage for Firebase, for example,
43
+ /// `"gs://bucket-name/path/image.jpg"`.
36
44
case fileData( mimetype: String , uri: String )
37
45
38
46
/// A predicted function call returned from the model.
You can’t perform that action at this time.
0 commit comments