You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| [maxOutputTokens](./ai.generationconfig.md#generationconfigmaxoutputtokens) | number | |
28
29
| [presencePenalty](./ai.generationconfig.md#generationconfigpresencepenalty) | number | |
29
30
| [responseJsonSchema](./ai.generationconfig.md#generationconfigresponsejsonschema) | { \[key:string\]:unknown; } |Outputschemaofthegeneratedresponse. Thisisanalternativeto<code>responseSchema</code>thataccepts \[JSONSchema\](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>. |
Copy file name to clipboardExpand all lines: docs-devsite/ai.md
+75Lines changed: 75 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,7 @@ The Firebase AI Web SDK.
99
99
|[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). |
100
100
|[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. |
|[ImageConfig](./ai.imageconfig.md#imageconfig_interface)| Configuration options for generating images with Gemini models. |
102
103
|[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. |
103
104
|[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. |
104
105
|[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.
166
167
|[HarmCategory](./ai.md#harmcategory)| Harm categories that would cause prompts or candidates to be blocked. |
167
168
|[HarmProbability](./ai.md#harmprobability)| Probability that a prompt or candidate matches a harm category. |
|[ImageConfigAspectRatio](./ai.md#imageconfigaspectratio)| Aspect ratios for generated images. |
171
+
|[ImageConfigImageSize](./ai.md#imageconfigimagesize)| Sizes for generated images. |
169
172
|[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. |
170
173
|[ImagenPersonFilterLevel](./ai.md#imagenpersonfilterlevel)| A filter level controlling whether generation of images containing people or faces is allowed.<!---->See the <ahref="http://firebase.google.com/docs/vertex-ai/generate-images">personGeneration</a> documentation for more details. |
171
174
|[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.
195
198
|[HarmCategory](./ai.md#harmcategory)| Harm categories that would cause prompts or candidates to be blocked. |
196
199
|[HarmProbability](./ai.md#harmprobability)| Probability that a prompt or candidate matches a harm category. |
|[ImageConfigAspectRatio](./ai.md#imageconfigaspectratio)| Aspect ratios for generated images. |
202
+
|[ImageConfigImageSize](./ai.md#imageconfigimagesize)| Sizes for generated images. |
198
203
|[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. |
199
204
|[ImagenPersonFilterLevel](./ai.md#imagenpersonfilterlevel)| A filter level controlling whether generation of images containing people or faces is allowed.<!---->See the <ahref="http://firebase.google.com/docs/vertex-ai/generate-images">personGeneration</a> documentation for more details. |
200
205
|[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. |
0 commit comments