Skip to content

Commit 8911375

Browse files
committed
yarn docgen:all
1 parent 32f3874 commit 8911375

File tree

3 files changed

+88
-0
lines changed

3 files changed

+88
-0
lines changed

docs-devsite/_toc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ toc:
106106
path: /docs/reference/js/ai.groundingsupport.md
107107
- title: HybridParams
108108
path: /docs/reference/js/ai.hybridparams.md
109+
- title: ImageConfig
110+
path: /docs/reference/js/ai.imageconfig.md
109111
- title: ImagenGCSImage
110112
path: /docs/reference/js/ai.imagengcsimage.md
111113
- title: ImagenGenerationConfig

docs-devsite/ai.generationconfig.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export interface GenerationConfig
2424
| --- | --- | --- |
2525
| [candidateCount](./ai.generationconfig.md#generationconfigcandidatecount) | number | |
2626
| [frequencyPenalty](./ai.generationconfig.md#generationconfigfrequencypenalty) | number | |
27+
| [imageConfig](./ai.generationconfig.md#generationconfigimageconfig) | [ImageConfig](./ai.imageconfig.md#imageconfig_interface) | Configuration options for generating images with Gemini models. |
2728
| [maxOutputTokens](./ai.generationconfig.md#generationconfigmaxoutputtokens) | number | |
2829
| [presencePenalty](./ai.generationconfig.md#generationconfigpresencepenalty) | number | |
2930
| [responseJsonSchema](./ai.generationconfig.md#generationconfigresponsejsonschema) | { \[key: string\]: unknown; } | Output schema of the generated response. This is an alternative to <code>responseSchema</code> that accepts \[JSON Schema\](https://json-schema.org/).<!-- -->If set, <code>responseSchema</code> must be omitted, but <code>responseMimeType</code> is required and must be set to <code>application/json</code>. |
@@ -52,6 +53,16 @@ candidateCount?: number;
5253
frequencyPenalty?: number;
5354
```
5455

56+
## GenerationConfig.imageConfig
57+
58+
Configuration options for generating images with Gemini models.
59+
60+
<b>Signature:</b>
61+
62+
```typescript
63+
imageConfig?: ImageConfig;
64+
```
65+
5566
## GenerationConfig.maxOutputTokens
5667

5768
<b>Signature:</b>

docs-devsite/ai.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ The Firebase AI Web SDK.
9999
| [GroundingMetadata](./ai.groundingmetadata.md#groundingmetadata_interface) | Metadata returned when grounding is enabled.<!-- -->Currently, only Grounding with Google Search is supported (see [GoogleSearchTool](./ai.googlesearchtool.md#googlesearchtool_interface)<!-- -->).<!-- -->Important: If using Grounding with Google Search, you are required to comply with the "Grounding with Google Search" usage requirements for your chosen API provider: [Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section within the Service Specific Terms). |
100100
| [GroundingSupport](./ai.groundingsupport.md#groundingsupport_interface) | Provides information about how a specific segment of the model's response is supported by the retrieved grounding chunks. |
101101
| [HybridParams](./ai.hybridparams.md#hybridparams_interface) | <b><i>(Public Preview)</i></b> Configures hybrid inference. |
102+
| [ImageConfig](./ai.imageconfig.md#imageconfig_interface) | Configuration options for generating images with Gemini models. |
102103
| [ImagenGCSImage](./ai.imagengcsimage.md#imagengcsimage_interface) | An image generated by Imagen, stored in a Cloud Storage for Firebase bucket.<!-- -->This feature is not available yet. |
103104
| [ImagenGenerationConfig](./ai.imagengenerationconfig.md#imagengenerationconfig_interface) | Configuration options for generating images with Imagen.<!-- -->See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images-imagen) for more details. |
104105
| [ImagenGenerationResponse](./ai.imagengenerationresponse.md#imagengenerationresponse_interface) | The response from a request to generate images with Imagen. |
@@ -166,6 +167,8 @@ The Firebase AI Web SDK.
166167
| [HarmCategory](./ai.md#harmcategory) | Harm categories that would cause prompts or candidates to be blocked. |
167168
| [HarmProbability](./ai.md#harmprobability) | Probability that a prompt or candidate matches a harm category. |
168169
| [HarmSeverity](./ai.md#harmseverity) | Harm severity levels. |
170+
| [ImageConfigAspectRatio](./ai.md#imageconfigaspectratio) | Aspect ratios for generated images. |
171+
| [ImageConfigImageSize](./ai.md#imageconfigimagesize) | Sizes for generated images. |
169172
| [ImagenAspectRatio](./ai.md#imagenaspectratio) | Aspect ratios for Imagen images.<!-- -->To specify an aspect ratio for generated images, set the <code>aspectRatio</code> property in your [ImagenGenerationConfig](./ai.imagengenerationconfig.md#imagengenerationconfig_interface)<!-- -->.<!-- -->See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details and examples of the supported aspect ratios. |
170173
| [ImagenPersonFilterLevel](./ai.md#imagenpersonfilterlevel) | A filter level controlling whether generation of images containing people or faces is allowed.<!-- -->See the <a href="http://firebase.google.com/docs/vertex-ai/generate-images">personGeneration</a> documentation for more details. |
171174
| [ImagenSafetyFilterLevel](./ai.md#imagensafetyfilterlevel) | A filter level controlling how aggressively to filter sensitive content.<!-- -->Text prompts provided as inputs and images (generated or uploaded) through Imagen on Vertex AI are assessed against a list of safety filters, which include 'harmful categories' (for example, <code>violence</code>, <code>sexual</code>, <code>derogatory</code>, and <code>toxic</code>). This filter level controls how aggressively to filter out potentially harmful content from responses. See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) and the [Responsible AI and usage guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#safety-filters) for more details. |
@@ -195,6 +198,8 @@ The Firebase AI Web SDK.
195198
| [HarmCategory](./ai.md#harmcategory) | Harm categories that would cause prompts or candidates to be blocked. |
196199
| [HarmProbability](./ai.md#harmprobability) | Probability that a prompt or candidate matches a harm category. |
197200
| [HarmSeverity](./ai.md#harmseverity) | Harm severity levels. |
201+
| [ImageConfigAspectRatio](./ai.md#imageconfigaspectratio) | Aspect ratios for generated images. |
202+
| [ImageConfigImageSize](./ai.md#imageconfigimagesize) | Sizes for generated images. |
198203
| [ImagenAspectRatio](./ai.md#imagenaspectratio) | Aspect ratios for Imagen images.<!-- -->To specify an aspect ratio for generated images, set the <code>aspectRatio</code> property in your [ImagenGenerationConfig](./ai.imagengenerationconfig.md#imagengenerationconfig_interface)<!-- -->.<!-- -->See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details and examples of the supported aspect ratios. |
199204
| [ImagenPersonFilterLevel](./ai.md#imagenpersonfilterlevel) | A filter level controlling whether generation of images containing people or faces is allowed.<!-- -->See the <a href="http://firebase.google.com/docs/vertex-ai/generate-images">personGeneration</a> documentation for more details. |
200205
| [ImagenSafetyFilterLevel](./ai.md#imagensafetyfilterlevel) | A filter level controlling how aggressively to filter sensitive content.<!-- -->Text prompts provided as inputs and images (generated or uploaded) through Imagen on Vertex AI are assessed against a list of safety filters, which include 'harmful categories' (for example, <code>violence</code>, <code>sexual</code>, <code>derogatory</code>, and <code>toxic</code>). This filter level controls how aggressively to filter out potentially harmful content from responses. See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) and the [Responsible AI and usage guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#safety-filters) for more details. |
@@ -546,6 +551,16 @@ FinishReason: {
546551
readonly PROHIBITED_CONTENT: "PROHIBITED_CONTENT";
547552
readonly SPII: "SPII";
548553
readonly MALFORMED_FUNCTION_CALL: "MALFORMED_FUNCTION_CALL";
554+
readonly IMAGE_SAFETY: "IMAGE_SAFETY";
555+
readonly IMAGE_PROHIBITED_CONTENT: "IMAGE_PROHIBITED_CONTENT";
556+
readonly IMAGE_OTHER: "IMAGE_OTHER";
557+
readonly NO_IMAGE: "NO_IMAGE";
558+
readonly IMAGE_RECITATION: "IMAGE_RECITATION";
559+
readonly LANGUAGE: "LANGUAGE";
560+
readonly UNEXPECTED_TOOL_CALL: "UNEXPECTED_TOOL_CALL";
561+
readonly TOO_MANY_TOOL_CALLS: "TOO_MANY_TOOL_CALLS";
562+
readonly MISSING_THOUGHT_SIGNATURE: "MISSING_THOUGHT_SIGNATURE";
563+
readonly MALFORMED_RESPONSE: "MALFORMED_RESPONSE";
549564
}
550565
```
551566

@@ -637,6 +652,46 @@ HarmSeverity: {
637652
}
638653
```
639654

655+
## ImageConfigAspectRatio
656+
657+
Aspect ratios for generated images.
658+
659+
<b>Signature:</b>
660+
661+
```typescript
662+
ImageConfigAspectRatio: {
663+
readonly SQUARE_1x1: "1:1";
664+
readonly PORTRAIT_9x16: "9:16";
665+
readonly LANDSCAPE_16x9: "16:9";
666+
readonly PORTRAIT_3x4: "3:4";
667+
readonly LANDSCAPE_4x3: "4:3";
668+
readonly PORTRAIT_2x3: "2:3";
669+
readonly LANDSCAPE_3x2: "3:2";
670+
readonly PORTRAIT_4x5: "4:5";
671+
readonly LANDSCAPE_5x4: "5:4";
672+
readonly PORTRAIT_1x4: "1:4";
673+
readonly LANDSCAPE_4x1: "4:1";
674+
readonly PORTRAIT_1x8: "1:8";
675+
readonly LANDSCAPE_8x1: "8:1";
676+
readonly ULTRAWIDE_21x9: "21:9";
677+
}
678+
```
679+
680+
## ImageConfigImageSize
681+
682+
Sizes for generated images.
683+
684+
<b>Signature:</b>
685+
686+
```typescript
687+
ImageConfigImageSize: {
688+
readonly SIZE_512: "512";
689+
readonly SIZE_1K: "1K";
690+
readonly SIZE_2K: "2K";
691+
readonly SIZE_4K: "4K";
692+
}
693+
```
694+
640695
## ImagenAspectRatio
641696

642697
> Warning: This API is now obsolete.
@@ -980,6 +1035,26 @@ Harm severity levels.
9801035
export type HarmSeverity = (typeof HarmSeverity)[keyof typeof HarmSeverity];
9811036
```
9821037

1038+
## ImageConfigAspectRatio
1039+
1040+
Aspect ratios for generated images.
1041+
1042+
<b>Signature:</b>
1043+
1044+
```typescript
1045+
export type ImageConfigAspectRatio = (typeof ImageConfigAspectRatio)[keyof typeof ImageConfigAspectRatio];
1046+
```
1047+
1048+
## ImageConfigImageSize
1049+
1050+
Sizes for generated images.
1051+
1052+
<b>Signature:</b>
1053+
1054+
```typescript
1055+
export type ImageConfigImageSize = (typeof ImageConfigImageSize)[keyof typeof ImageConfigImageSize];
1056+
```
1057+
9831058
## ImagenAspectRatio
9841059

9851060
> Warning: This API is now obsolete.

0 commit comments

Comments
 (0)