Skip to content

Commit 1710097

Browse files
Apply suggestions from code review
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent d3cb941 commit 1710097

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

FirebaseAI/CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Unreleased
2-
- The Developer API and the Imagen generation APIs are now Generally
3-
Available (GA).
2+
- [changed] The Developer API and the Imagen generation APIs are now Generally Available (GA).
43

54
# 12.3.0
65
- [feature] Added support for the Code Execution tool, which enables the model

FirebaseAI/Sources/FirebaseAI.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ public final class FirebaseAI: Sendable {
105105
)
106106
}
107107

108+
/// Initializes an ``ImagenModel`` with the given parameters.
109+
///
108110
/// > Important: Only Imagen 3 models (named `imagen-3.0-*`) are supported.
109111
///
110112
/// - Parameters:

FirebaseAI/Sources/Types/Public/Imagen/ImagenModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public final class ImagenModel {
6161
self.requestOptions = requestOptions
6262
}
6363

64+
/// Generates images using the Imagen model and returns them as inline data.
65+
///
6466
/// The individual ``ImagenInlineImage/data`` is provided for each of the generated
6567
/// ``ImagenGenerationResponse/images``.
6668
///
@@ -81,6 +83,8 @@ public final class ImagenModel {
8183
)
8284
}
8385

86+
/// Generates images using the Imagen model and stores them in Cloud Storage (GCS) for Firebase.
87+
///
8488
/// The generated images are stored in a subdirectory of the requested `gcsURI`, named as a random
8589
/// numeric hash. For example, for the `gcsURI` `"gs://bucket-name/path/"`, the generated images
8690
/// are stored in `"gs://bucket-name/path/1234567890123/"` with the names `sample_0.png`,

0 commit comments

Comments
 (0)