Skip to content

Commit 7cd652b

Browse files
committed
[Vertex AI] Update documentation for file data (#12929)
1 parent 73a1dd9 commit 7cd652b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

FirebaseVertexAI/Sources/ModelContent.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,19 @@ public struct ModelContent: Equatable {
2828
/// Data with a specified media type. Not all media types may be supported by the AI model.
2929
case data(mimetype: String, Data)
3030

31-
/// URI-based data with a specified media type.
31+
/// File data stored in Cloud Storage for Firebase, referenced by URI.
3232
///
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
3434
/// > ](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements)
3535
/// > 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"`.
3644
case fileData(mimetype: String, uri: String)
3745

3846
/// A predicted function call returned from the model.

0 commit comments

Comments
 (0)