Skip to content

Commit 962b40e

Browse files
committed
Switch to uri / String
1 parent 08c5636 commit 962b40e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Sources/GoogleAI/ModelContent.swift

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,19 @@ public struct ModelContent: Codable, Equatable {
4545

4646
/// Data with a specified media type.
4747
///
48-
/// > Note: Supported media types depends on the model.
48+
/// > Note: Supported media types depends on the model; see
49+
/// > [supported file
50+
/// > formats](https://ai.google.dev/tutorials/prompting_with_media#supported_file_formats)
51+
/// > for details.
4952
case data(mimetype: String, Data)
5053

5154
/// URI-based data with a specified media type.
5255
///
53-
/// > Note: Supported media types depends on the model.
54-
case fileData(mimetype: String, URL)
56+
/// > Note: Supported media types depends on the model; see
57+
/// > [supported file
58+
/// > formats](https://ai.google.dev/tutorials/prompting_with_media#supported_file_formats)
59+
/// > for details.
60+
case fileData(mimetype: String, uri: String)
5561

5662
/// A predicted function call returned from the model.
5763
case functionCall(FunctionCall)

0 commit comments

Comments
 (0)