Skip to content

Commit a52255e

Browse files
authored
feat(firebaseai): mark imagen generate function ga (#17757)
* mark imagen generate function ga * fix analyzer
1 parent 6d1a0da commit a52255e

File tree

4 files changed

+0
-15
lines changed

4 files changed

+0
-15
lines changed

packages/firebase_ai/firebase_ai/lib/src/firebase_ai.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import 'package:firebase_auth/firebase_auth.dart';
1717
import 'package:firebase_core/firebase_core.dart';
1818
import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'
1919
show FirebasePluginPlatform;
20-
import 'package:meta/meta.dart';
2120

2221
import '../firebase_ai.dart';
2322
import 'base_model.dart';
@@ -158,7 +157,6 @@ class FirebaseAI extends FirebasePluginPlatform {
158157
///
159158
/// The optional [safetySettings] can be used to control and guide the
160159
/// generation. See [ImagenSafetySettings] for details.
161-
@experimental
162160
ImagenModel imagenModel(
163161
{required String model,
164162
ImagenGenerationConfig? generationConfig,

packages/firebase_ai/firebase_ai/lib/src/imagen/imagen_api.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@
1313
// limitations under the License.
1414
import 'dart:developer';
1515

16-
import 'package:meta/meta.dart';
17-
1816
/// Specifies the level of safety filtering for image generation.
1917
///
2018
/// If not specified, default will be "block_medium_and_above".
21-
@experimental
2219
enum ImagenSafetyFilterLevel {
2320
/// Strongest filtering level, most strict blocking.
2421
blockLowAndAbove('block_low_and_above'),
@@ -60,7 +57,6 @@ enum ImagenSafetyFilterLevel {
6057
/// Allow generation of people by the model.
6158
///
6259
/// If not specified, the default value is "allow_adult".
63-
@experimental
6460
enum ImagenPersonFilterLevel {
6561
/// Disallow the inclusion of people or faces in images.
6662
blockAll('dont_allow'),
@@ -96,7 +92,6 @@ enum ImagenPersonFilterLevel {
9692
/// A class representing safety settings for image generation.
9793
///
9894
/// It includes a safety filter level and a person filter level.
99-
@experimental
10095
final class ImagenSafetySettings {
10196
// ignore: public_member_api_docs
10297
ImagenSafetySettings(this.safetyFilterLevel, this.personFilterLevel);
@@ -119,7 +114,6 @@ final class ImagenSafetySettings {
119114
/// The aspect ratio for the image.
120115
///
121116
/// The default value is "1:1".
122-
@experimental
123117
enum ImagenAspectRatio {
124118
/// Square (1:1).
125119
square1x1('1:1'),
@@ -161,7 +155,6 @@ enum ImagenAspectRatio {
161155
}
162156

163157
/// Configuration options for image generation.
164-
@experimental
165158
final class ImagenGenerationConfig {
166159
// ignore: public_member_api_docs
167160
ImagenGenerationConfig(
@@ -202,7 +195,6 @@ final class ImagenGenerationConfig {
202195
}
203196

204197
/// Represents the image format and compression quality.
205-
@experimental
206198
final class ImagenFormat {
207199
// ignore: public_member_api_docs
208200
ImagenFormat(this.mimeType, this.compressionQuality);

packages/firebase_ai/firebase_ai/lib/src/imagen/imagen_content.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// limitations under the License.
1414
import 'dart:convert';
1515
import 'dart:typed_data';
16-
import 'package:meta/meta.dart';
1716
import '../error.dart';
1817

1918
/// Base type of Imagen Image.
@@ -29,7 +28,6 @@ sealed class ImagenImage {
2928
}
3029

3130
/// Represents an image stored as a base64-encoded string.
32-
@experimental
3331
final class ImagenInlineImage implements ImagenImage {
3432
// ignore: public_member_api_docs
3533
ImagenInlineImage({

packages/firebase_ai/firebase_ai/lib/src/imagen/imagen_model.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ part of '../base_model.dart';
2424
/// > Warning: For Vertex AI in Firebase, image generation using Imagen 3 models
2525
/// is in Public Preview, which means that the feature is not subject to any SLA
2626
/// or deprecation policy and could change in backwards-incompatible ways.
27-
@experimental
2827
final class ImagenModel extends BaseApiClientModel {
2928
ImagenModel._(
3029
{required FirebaseApp app,
@@ -84,7 +83,6 @@ final class ImagenModel extends BaseApiClientModel {
8483

8584
/// Generates images with format of [ImagenInlineImage] based on the given
8685
/// prompt.
87-
@experimental
8886
Future<ImagenGenerationResponse<ImagenInlineImage>> generateImages(
8987
String prompt,
9088
) =>
@@ -194,7 +192,6 @@ final class ImagenModel extends BaseApiClientModel {
194192
}
195193

196194
/// Returns a [ImagenModel] using it's private constructor.
197-
@experimental
198195
ImagenModel createImagenModel({
199196
required FirebaseApp app,
200197
required String location,

0 commit comments

Comments
 (0)