Skip to content

Commit ece898f

Browse files
committed
update
1 parent f7f919d commit ece898f

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

.changeset/violet-planets-impress.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
'firebase': minor
23
'@firebase/vertexai': minor
34
---
45

packages/vertexai/src/api.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ export function getGenerativeModel(
8484

8585
/**
8686
* Returns a <code>{@link ImagenModel}</code> class with methods for using Imagen.
87+
*
88+
* @beta
89+
* This feature is in public preview and is not intended for production use.
90+
* The API is subject to change.
8791
*
8892
* @public
8993
*/

packages/vertexai/src/models/imagen-model.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ export class ImagenModel extends VertexAIModel {
5858
/**
5959
* The Imagen Generation Configuration.
6060
*/
61-
readonly generationConfig?: ImagenGenerationConfig;
61+
generationConfig?: ImagenGenerationConfig;
6262
/**
6363
* Safety settings for filtering inappropriate content.
6464
*/
65-
readonly safetySettings?: ImagenSafetySettings;
65+
safetySettings?: ImagenSafetySettings;
6666

6767
/**
6868
* Constructs a new instance of the {@link ImagenModel} class.
@@ -77,7 +77,7 @@ export class ImagenModel extends VertexAIModel {
7777
constructor(
7878
vertexAI: VertexAI,
7979
modelParams: ImagenModelParams,
80-
readonly requestOptions?: RequestOptions
80+
public requestOptions?: RequestOptions
8181
) {
8282
const { model, generationConfig, safetySettings } = modelParams;
8383
super(vertexAI, model);
@@ -88,6 +88,10 @@ export class ImagenModel extends VertexAIModel {
8888
/**
8989
* Generates images using the Imagen model and returns them as
9090
* base64-encoded strings.
91+
*
92+
* @beta
93+
* This feature is in public preview and is not intended for production use.
94+
* The API is subject to change.
9195
*
9296
* @param prompt - The text prompt used to generate the images.
9397
* @returns A promise that resolves to an {@link ImagenGenerationResponse}
@@ -121,6 +125,10 @@ export class ImagenModel extends VertexAIModel {
121125

122126
/**
123127
* Generates images to Google Cloud Storage (GCS) using the Imagen model.
128+
*
129+
* @beta
130+
* This feature is in public preview and is not intended for production use.
131+
* The API is subject to change.
124132
*
125133
* @param prompt - The text prompt used to generate the images.
126134
* @param gcsURI - The GCS URI where the images should be stored.

packages/vertexai/src/requests/imagen-image-format.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* Use this class to specify the desired format (JPEG or PNG) and compression quality
2222
* for images generated by Imagen. This is typically included as part of
23-
* {@link ImagenModelParams}.
23+
* <code>{@link ImagenModelParams}</code>.
2424
*
2525
* @example
2626
* ```javascript
@@ -47,10 +47,14 @@ export class ImagenImageFormat {
4747
}
4848

4949
/**
50-
* Creates an ImagenImageFormat for a JPEG image.
50+
* Creates an <code>{@link ImagenImageFormat}</code> for a JPEG image.
51+
*
52+
* @beta
53+
* This feature is in public preview and is not intended for production use.
54+
* The API is subject to change.
5155
*
5256
* @param compressionQuality - The level of compression (a number between 0 and 100).
53-
* @returns ImagenImageFormat
57+
* @returns An <code>{@link ImagenImageFormat}</code> object for a JPEG image.
5458
*
5559
* @public
5660
*/
@@ -59,9 +63,13 @@ export class ImagenImageFormat {
5963
}
6064

6165
/**
62-
* Creates an ImageImageFormat for a PNG image.
66+
* Creates an <code>{@link ImagenImageFormat}</code> for a PNG image.
67+
*
68+
* @beta
69+
* This feature is in public preview and is not intended for production use.
70+
* The API is subject to change.
6371
*
64-
* @returns ImageImageFormat
72+
* @returns An <code>{@link ImagenImageFormat}</code> object for a PNG image.
6573
*
6674
* @public
6775
*/

0 commit comments

Comments
 (0)