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
Copy file name to clipboardExpand all lines: docs-devsite/vertexai.md
+26-6
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ The Vertex AI in Firebase Web SDK.
19
19
| <b>function(app, ...)</b> |
20
20
|[getVertexAI(app, options)](./vertexai.md#getvertexai_04094cf)| Returns a [VertexAI](./vertexai.vertexai.md#vertexai_interface) instance for the given app. |
21
21
| <b>function(vertexAI, ...)</b> |
22
-
|[getGenerativeModel(vertexAI, modelParams, requestOptions)](./vertexai.md#getgenerativemodel_e3037c9)| Returns a [GenerativeModel](./vertexai.generativemodel.md#generativemodel_class) class with methods for inference and other functionality. |
22
+
|[getGenerativeModel(vertexAI, onCloudOrHybridParams, requestOptions)](./vertexai.md#getgenerativemodel_202434f)| Returns a [GenerativeModel](./vertexai.generativemodel.md#generativemodel_class) class with methods for inference and other functionality. |
23
23
|[getImagenModel(vertexAI, modelParams, requestOptions)](./vertexai.md#getimagenmodel_812c375)| <b><i>(Public Preview)</i></b> Returns an [ImagenModel](./vertexai.imagenmodel.md#imagenmodel_class) class with methods for using Imagen.<!---->Only Imagen 3 models (named <code>imagen-3.0-*</code>) are supported. |
24
24
25
25
## Classes
@@ -55,6 +55,7 @@ The Vertex AI in Firebase Web SDK.
55
55
|[ImagenAspectRatio](./vertexai.md#imagenaspectratio)| <b><i>(Public Preview)</i></b> Aspect ratios for Imagen images.<!---->To specify an aspect ratio for generated images, set the <code>aspectRatio</code> property in your [ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)<!---->.<!---->See the the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details and examples of the supported aspect ratios. |
56
56
|[ImagenPersonFilterLevel](./vertexai.md#imagenpersonfilterlevel)| <b><i>(Public Preview)</i></b> 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. |
57
57
|[ImagenSafetyFilterLevel](./vertexai.md#imagensafetyfilterlevel)| <b><i>(Public Preview)</i></b> 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. |
58
+
|[InferenceMode](./vertexai.md#inferencemode)| Determines whether inference happens on-device or on-cloud. |
58
59
|[Modality](./vertexai.md#modality)| Content part modality. |
59
60
|[SchemaType](./vertexai.md#schematype)| Contains the list of OpenAPI data types as defined by the [OpenAPI specification](https://swagger.io/docs/specification/data-models/data-types/)|
60
61
|[VertexAIErrorCode](./vertexai.md#vertexaierrorcode)| Standardized error codes that [VertexAIError](./vertexai.vertexaierror.md#vertexaierror_class) can have. |
@@ -91,6 +92,7 @@ The Vertex AI in Firebase Web SDK.
91
92
|[GenerativeContentBlob](./vertexai.generativecontentblob.md#generativecontentblob_interface)| Interface for sending an image. |
|[GroundingMetadata](./vertexai.groundingmetadata.md#groundingmetadata_interface)| Metadata returned to client when grounding is enabled. |
95
+
|[HybridParams](./vertexai.hybridparams.md#hybridparams_interface)| Configures on-device and on-cloud inference. |
94
96
|[ImagenGCSImage](./vertexai.imagengcsimage.md#imagengcsimage_interface)| An image generated by Imagen, stored in a Cloud Storage for Firebase bucket.<!---->This feature is not available yet. |
95
97
|[ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)| <b><i>(Public Preview)</i></b> Configuration options for generating images with Imagen.<!---->See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images-imagen) for more details. |
96
98
|[ImagenGenerationResponse](./vertexai.imagengenerationresponse.md#imagengenerationresponse_interface)| <b><i>(Public Preview)</i></b> The response from a request to generate images with Imagen. |
@@ -99,10 +101,10 @@ The Vertex AI in Firebase Web SDK.
99
101
|[ImagenSafetySettings](./vertexai.imagensafetysettings.md#imagensafetysettings_interface)| <b><i>(Public Preview)</i></b> Settings for controlling the aggressiveness of filtering out sensitive content.<!---->See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details. |
100
102
|[InlineDataPart](./vertexai.inlinedatapart.md#inlinedatapart_interface)| Content part interface if the part represents an image. |
101
103
|[ModalityTokenCount](./vertexai.modalitytokencount.md#modalitytokencount_interface)| Represents token counting info for a single modality. |
102
-
|[ModelParams](./vertexai.modelparams.md#modelparams_interface)| Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_e3037c9)<!---->. |
104
+
|[ModelParams](./vertexai.modelparams.md#modelparams_interface)| Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_202434f)<!---->. |
103
105
|[ObjectSchemaInterface](./vertexai.objectschemainterface.md#objectschemainterface_interface)| Interface for [ObjectSchema](./vertexai.objectschema.md#objectschema_class) class. |
104
106
|[PromptFeedback](./vertexai.promptfeedback.md#promptfeedback_interface)| If the prompt was blocked, this will be populated with <code>blockReason</code> and the relevant <code>safetyRatings</code>. |
105
-
|[RequestOptions](./vertexai.requestoptions.md#requestoptions_interface)| Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_e3037c9)<!---->. |
107
+
|[RequestOptions](./vertexai.requestoptions.md#requestoptions_interface)| Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_202434f)<!---->. |
|[SafetyRating](./vertexai.safetyrating.md#safetyrating_interface)| A safety rating associated with a [GenerateContentCandidate](./vertexai.generatecontentcandidate.md#generatecontentcandidate_interface)|
108
110
|[SafetySetting](./vertexai.safetysetting.md#safetysetting_interface)| Safety setting that can be sent as part of request parameters. |
| BLOCK\_NONE | <code>"block_none"</code> | <b><i>(Public Preview)</i></b> The least aggressive filtering level; blocks very few sensitive prompts and responses.<!-- -->Access to this feature is restricted and may require your case to be reviewed and approved by Cloud support. |
490
492
| BLOCK\_ONLY\_HIGH | <code>"block_only_high"</code> | <b><i>(Public Preview)</i></b> Blocks few sensitive prompts and responses. |
491
493
494
+
## InferenceMode
495
+
496
+
Determines whether inference happens on-device or on-cloud.
0 commit comments