Skip to content

Commit d3ca739

Browse files
paulb777gemini-code-assist[bot]rachelsaunders
authored
[AI] Developer API and Imagen generate GA (#15336)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: rachelsaunders <[email protected]>
1 parent a207b19 commit d3ca739

File tree

3 files changed

+7
-20
lines changed

3 files changed

+7
-20
lines changed

FirebaseAI/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
- [changed] Using Firebase AI Logic with the Gemini Developer API is now Generally Available (GA).
3+
- [changed] Using Firebase AI Logic with the Imagen generation APIs is now Generally Available (GA).
4+
15
# 12.3.0
26
- [feature] Added support for the Code Execution tool, which enables the model
37
to generate and run code to perform complex tasks like solving mathematical

FirebaseAI/Sources/FirebaseAI.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,7 @@ public final class FirebaseAI: Sendable {
105105
)
106106
}
107107

108-
/// **[Public Preview]** Initializes an ``ImagenModel`` with the given parameters.
109-
///
110-
/// > Warning: For Firebase AI SDK, image generation using Imagen 3 models is in Public
111-
/// Preview, which means that the feature is not subject to any SLA or deprecation policy and
112-
/// could change in backwards-incompatible ways.
108+
/// Initializes an ``ImagenModel`` with the given parameters.
113109
///
114110
/// > Important: Only Imagen 3 models (named `imagen-3.0-*`) are supported.
115111
///

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ import Foundation
2222
/// documentation](https://firebase.google.com/docs/vertex-ai/generate-images-imagen?platform=ios)
2323
/// for more details about the image generation capabilities offered by the Imagen model in the
2424
/// Firebase AI SDK SDK.
25-
///
26-
/// > Warning: For Firebase AI SDK, image generation using Imagen 3 models is in Public
27-
/// Preview, which means that the feature is not subject to any SLA or deprecation policy and
28-
/// could change in backwards-incompatible ways.
2925
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
3026
public final class ImagenModel {
3127
/// Model name prefix to identify Imagen models.
@@ -65,18 +61,14 @@ public final class ImagenModel {
6561
self.requestOptions = requestOptions
6662
}
6763

68-
/// **[Public Preview]** Generates images using the Imagen model and returns them as inline data.
64+
/// Generates images using the Imagen model and returns them as inline data.
6965
///
7066
/// The individual ``ImagenInlineImage/data`` is provided for each of the generated
7167
/// ``ImagenGenerationResponse/images``.
7268
///
7369
/// > Note: By default, 1 image sample is generated; see ``ImagenGenerationConfig/numberOfImages``
7470
/// to configure the number of images that are generated.
7571
///
76-
/// > Warning: For Firebase AI SDK, image generation using Imagen 3 models is in Public
77-
/// Preview, which means that the feature is not subject to any SLA or deprecation policy and
78-
/// could change in backwards-incompatible ways.
79-
///
8072
/// - Parameters:
8173
/// - prompt: A text prompt describing the image(s) to generate.
8274
public func generateImages(prompt: String) async throws
@@ -91,8 +83,7 @@ public final class ImagenModel {
9183
)
9284
}
9385

94-
/// **[Public Preview]** Generates images using the Imagen model and stores them in Cloud Storage
95-
/// (GCS) for Firebase.
86+
/// Generates images using the Imagen model and stores them in Cloud Storage (GCS) for Firebase.
9687
///
9788
/// The generated images are stored in a subdirectory of the requested `gcsURI`, named as a random
9889
/// numeric hash. For example, for the `gcsURI` `"gs://bucket-name/path/"`, the generated images
@@ -105,10 +96,6 @@ public final class ImagenModel {
10596
/// > Note: By default, 1 image sample is generated; see ``ImagenGenerationConfig/numberOfImages``
10697
/// to configure the number of images that are generated.
10798
///
108-
/// > Warning: For Firebase AI SDK, image generation using Imagen 3 models is in Public
109-
/// Preview, which means that the feature is not subject to any SLA or deprecation policy and
110-
/// could change in backwards-incompatible ways.
111-
///
11299
/// - Parameters:
113100
/// - prompt: A text prompt describing the image(s) to generate.
114101
/// - gcsURI: The Cloud Storage (GCS) for Firebase URI where the generated images are stored.

0 commit comments

Comments
 (0)