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
|[HarmBlockMethod](./ai.md#harmblockmethod)|This property is not supported in the Gemini Developer API ([GoogleAIBackend](./ai.googleaibackend.md#googleaibackend_class)<!---->).|
184
+
|[HarmBlockThreshold](./ai.md#harmblockthreshold)|Threshold above which a prompt or candidate will be blocked.|
185
+
|[HarmCategory](./ai.md#harmcategory)|Harm categories that would cause prompts or candidates to be blocked.|
186
+
|[HarmProbability](./ai.md#harmprobability)|Probability that a prompt or candidate matches a harm category.|
|[ImagenAspectRatio](./ai.md#imagenaspectratio)|<b><i>(Public Preview)</i></b> Aspect ratios for Imagen images.|
189
+
|[ImagenPersonFilterLevel](./ai.md#imagenpersonfilterlevel)|<b><i>(Public Preview)</i></b> A filter level controlling whether generation of images containing people or faces is allowed.|
190
+
|[ImagenSafetyFilterLevel](./ai.md#imagensafetyfilterlevel)|<b><i>(Public Preview)</i></b> A filter level controlling how aggressively to filter sensitive content.|
|[Language](./ai.md#language)| <b><i>(Public Preview)</i></b> The programming language of the code. |
193
193
|[LanguageModelMessageContentValue](./ai.md#languagemodelmessagecontentvalue)| <b><i>(Public Preview)</i></b> Content formats that can be provided as on-device message content. |
194
194
|[LanguageModelMessageRole](./ai.md#languagemodelmessagerole)| <b><i>(Public Preview)</i></b> Allowable roles for on-device language model usage. |
195
195
|[LanguageModelMessageType](./ai.md#languagemodelmessagetype)| <b><i>(Public Preview)</i></b> Allowable types for on-device language model messages. |
196
-
|[LiveResponseType](./ai.md#liveresponsetype)||
197
-
|[Modality](./ai.md#modality)||
196
+
|[LiveResponseType](./ai.md#liveresponsetype)|<b><i>(Public Preview)</i></b> The types of responses that can be returned by [LiveSession.receive()](./ai.livesession.md#livesessionreceive)<!---->.|
197
+
|[Modality](./ai.md#modality)|Content part modality.|
198
198
|[Outcome](./ai.md#outcome)| <b><i>(Public Preview)</i></b> Represents the result of the code execution. |
199
199
|[Part](./ai.md#part)| Content part - includes text, image/video, or function call/response part types. |
200
200
|[ResponseModality](./ai.md#responsemodality)| <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
An enum-like object containing constants that represent the supported backends for the Firebase AI SDK.
825
+
826
+
This determines which backend service (Vertex AI Gemini API or Gemini Developer API) the SDK will communicate with. These values are assigned to the `backendType` property within the specific backend configuration objects ([GoogleAIBackend](./ai.googleaibackend.md#googleaibackend_class) or [VertexAIBackend](./ai.vertexaibackend.md#vertexaibackend_class)<!---->) to identify which service to target.
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
916
+
>
917
+
918
+
Aspect ratios for Imagen images.
919
+
920
+
To specify an aspect ratio for generated images, set the `aspectRatio` 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.
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
931
+
>
932
+
933
+
A filter level controlling whether generation of images containing people or faces is allowed.
934
+
935
+
See the <ahref="http://firebase.google.com/docs/vertex-ai/generate-images">personGeneration</a> documentation for more details.
936
+
905
937
<b>Signature:</b>
906
938
907
939
```typescript
@@ -910,6 +942,13 @@ export type ImagenPersonFilterLevel = (typeof ImagenPersonFilterLevel)[keyof typ
910
942
911
943
## ImagenSafetyFilterLevel
912
944
945
+
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
946
+
>
947
+
948
+
A filter level controlling how aggressively to filter sensitive content.
949
+
950
+
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, `violence`<!---->, `sexual`<!---->, `derogatory`<!---->, and `toxic`<!---->). 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