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/ai.generativemodel.md
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,13 @@ export declare class GenerativeModel extends AIModel
23
23
24
24
| Constructor | Modifiers | Description |
25
25
| --- | --- | --- |
26
-
| [(constructor)(ai, modelParams, requestOptions)](./ai.generativemodel.md#generativemodelconstructor) | | Constructs a new instance of the <code>GenerativeModel</code> class |
26
+
| [(constructor)(ai, modelParams, chromeAdapter, requestOptions)](./ai.generativemodel.md#generativemodelconstructor) | | Constructs a new instance of the <code>GenerativeModel</code> class |
27
27
28
28
## Properties
29
29
30
30
| Property | Modifiers | Type | Description |
31
31
| --- | --- | --- | --- |
32
+
| [DEFAULT\_HYBRID\_IN\_CLOUD\_MODEL](./ai.generativemodel.md#generativemodeldefault_hybrid_in_cloud_model) | <code>static</code> | string | Defines the name of the default in-cloud model to use for hybrid inference. |
Copy file name to clipboardExpand all lines: docs-devsite/ai.md
+19-6Lines changed: 19 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The Firebase AI Web SDK.
20
20
|[getAI(app, options)](./ai.md#getai_a94a413)| Returns the default [AI](./ai.ai.md#ai_interface) instance that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with the default settings. |
|[getGenerativeModel(ai, modelParams, requestOptions)](./ai.md#getgenerativemodel_80bd839)| Returns a [GenerativeModel](./ai.generativemodel.md#generativemodel_class) class with methods for inference and other functionality. |
23
+
|[getGenerativeModel(ai, modelParams, requestOptions)](./ai.md#getgenerativemodel_c63f46a)| Returns a [GenerativeModel](./ai.generativemodel.md#generativemodel_class) class with methods for inference and other functionality. |
24
24
|[getImagenModel(ai, modelParams, requestOptions)](./ai.md#getimagenmodel_e1f6645)| <b><i>(Public Preview)</i></b> Returns an [ImagenModel](./ai.imagenmodel.md#imagenmodel_class) class with methods for using Imagen.<!---->Only Imagen 3 models (named <code>imagen-3.0-*</code>) are supported. |
25
25
26
26
## Classes
@@ -97,6 +97,7 @@ The Firebase AI Web SDK.
97
97
|[GenerativeContentBlob](./ai.generativecontentblob.md#generativecontentblob_interface)| Interface for sending an image. |
|[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. |
101
102
|[ImagenGenerationConfig](./ai.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. |
102
103
|[ImagenGenerationResponse](./ai.imagengenerationresponse.md#imagengenerationresponse_interface)| <b><i>(Public Preview)</i></b> The response from a request to generate images with Imagen. |
@@ -105,10 +106,11 @@ The Firebase AI Web SDK.
105
106
|[ImagenSafetySettings](./ai.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. |
106
107
|[InlineDataPart](./ai.inlinedatapart.md#inlinedatapart_interface)| Content part interface if the part represents an image. |
107
108
|[ModalityTokenCount](./ai.modalitytokencount.md#modalitytokencount_interface)| Represents token counting info for a single modality. |
108
-
|[ModelParams](./ai.modelparams.md#modelparams_interface)| Params passed to [getGenerativeModel()](./ai.md#getgenerativemodel_80bd839)<!---->. |
109
+
|[ModelParams](./ai.modelparams.md#modelparams_interface)| Params passed to [getGenerativeModel()](./ai.md#getgenerativemodel_c63f46a)<!---->. |
109
110
|[ObjectSchemaInterface](./ai.objectschemainterface.md#objectschemainterface_interface)| Interface for [ObjectSchema](./ai.objectschema.md#objectschema_class) class. |
111
+
|[OnDeviceParams](./ai.ondeviceparams.md#ondeviceparams_interface)| Encapsulates configuration for on-device inference. |
110
112
|[PromptFeedback](./ai.promptfeedback.md#promptfeedback_interface)| If the prompt was blocked, this will be populated with <code>blockReason</code> and the relevant <code>safetyRatings</code>. |
111
-
|[RequestOptions](./ai.requestoptions.md#requestoptions_interface)| Params passed to [getGenerativeModel()](./ai.md#getgenerativemodel_80bd839)<!---->. |
113
+
|[RequestOptions](./ai.requestoptions.md#requestoptions_interface)| Params passed to [getGenerativeModel()](./ai.md#getgenerativemodel_c63f46a)<!---->. |
|[SafetyRating](./ai.safetyrating.md#safetyrating_interface)| A safety rating associated with a [GenerateContentCandidate](./ai.generatecontentcandidate.md#generatecontentcandidate_interface)|
114
116
|[SafetySetting](./ai.safetysetting.md#safetysetting_interface)| Safety setting that can be sent as part of request parameters. |
@@ -140,6 +142,7 @@ The Firebase AI Web SDK.
140
142
| Type Alias | Description |
141
143
| --- | --- |
142
144
|[BackendType](./ai.md#backendtype)| Type alias representing valid backend types. It can be either <code>'VERTEX_AI'</code> or <code>'GOOGLE_AI'</code>. |
145
+
|[InferenceMode](./ai.md#inferencemode)| Determines whether inference happens on-device or in-cloud. |
143
146
|[Part](./ai.md#part)| Content part - includes text, image/video, or function call/response part types. |
144
147
|[ResponseModality](./ai.md#responsemodality)| <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
145
148
|[Role](./ai.md#role)| Role is the producer of the content. |
0 commit comments