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
Fix languageCode parameter in action_code_url (#8912)
* Fix languageCode parameter in action_code_url
* Add changeset
Vaihi add langmodel types. (#8927)
* Adding LanguageModel types. These are based off https://github.com/webmachinelearning/prompt-api?tab=readme-ov-file#full-api-surface-in-web-idl
* Adding LanguageModel types.
* Remove bunch of exports
* yarn formatted
* after lint
Define HybridParams (#8935)
Co-authored-by: Erik Eldridge <[email protected]>
Adding smoke test for new hybrid params (#8937)
* Adding smoke test for new hybrid params
* Use the existing name of the model params input
---------
Co-authored-by: Erik Eldridge <[email protected]>
Moving to in-cloud naming (#8938)
Co-authored-by: Erik Eldridge <[email protected]>
Moving to string type for the inference mode (#8941)
Define ChromeAdapter class (#8942)
Co-authored-by: Erik Eldridge <[email protected]>
VinF Hybrid Inference: Implement ChromeAdapter (rebased) (#8943)
Adding count token impl (#8950)
VinF Hybrid Inference #4: ChromeAdapter in stream methods (rebased) (#8949)
Define values for Availability enum (#8951)
VinF Hybrid Inference: narrow Chrome input type (#8953)
Add image inference support (#8954)
* Adding image based input for inference
* adding image as input to create language model object
disable count tokens api for on-device inference (#8962)
VinF Hybrid Inference: throw if only_on_device and model is unavailable (#8965)
VinF Hybrid Inference: update docs (#8970)
VinF Hybrid Inference: consolidate onDeviceParams initialization (#8969)
VinF Hybrid Inference: disable multi-turn support (#8973)
VinF Hybrid Inference: remove default expected input types (#8974)
VinF Hybrid Inference: set image (and text) as default input type (#8984)
VinF Hybrid Inference: log debug messages in conditional logic (#8992)
Copy file name to clipboardExpand all lines: docs-devsite/vertexai.generativemodel.md
+14-2
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)](./vertexai.generativemodel.md#generativemodelconstructor) | | Constructs a new instance of the <code>GenerativeModel</code> class |
26
+
| [(constructor)(ai, modelParams, chromeAdapter, requestOptions)](./vertexai.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](./vertexai.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/vertexai.md
+18-6
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The Firebase AI Web SDK.
20
20
|[getAI(app, options)](./vertexai.md#getai_a94a413)| Returns the default [AI](./vertexai.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. |
21
21
|[getVertexAI(app, options)](./vertexai.md#getvertexai_04094cf)| It is recommended to use the new [getAI()](./vertexai.md#getai_a94a413)<!---->.<!---->Returns a [VertexAI](./vertexai.md#vertexai) instance for the given app, configured to use the Vertex AI Gemini API. This instance will be configured to use the Vertex AI Gemini API. |
22
22
| <b>function(ai, ...)</b> |
23
-
|[getGenerativeModel(ai, modelParams, requestOptions)](./vertexai.md#getgenerativemodel_80bd839)| Returns a [GenerativeModel](./vertexai.generativemodel.md#generativemodel_class) class with methods for inference and other functionality. |
23
+
|[getGenerativeModel(ai, modelParams, requestOptions)](./vertexai.md#getgenerativemodel_c63f46a)| Returns a [GenerativeModel](./vertexai.generativemodel.md#generativemodel_class) class with methods for inference and other functionality. |
24
24
|[getImagenModel(ai, modelParams, requestOptions)](./vertexai.md#getimagenmodel_e1f6645)| <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. |
25
25
26
26
## Classes
@@ -97,6 +97,7 @@ The Firebase AI Web SDK.
97
97
|[GenerativeContentBlob](./vertexai.generativecontentblob.md#generativecontentblob_interface)| Interface for sending an image. |
|[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. |
101
102
|[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. |
102
103
|[ImagenGenerationResponse](./vertexai.imagengenerationresponse.md#imagengenerationresponse_interface)| <b><i>(Public Preview)</i></b> The response from a request to generate images with Imagen. |
@@ -105,10 +106,10 @@ The Firebase AI Web SDK.
105
106
|[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. |
106
107
|[InlineDataPart](./vertexai.inlinedatapart.md#inlinedatapart_interface)| Content part interface if the part represents an image. |
107
108
|[ModalityTokenCount](./vertexai.modalitytokencount.md#modalitytokencount_interface)| Represents token counting info for a single modality. |
108
-
|[ModelParams](./vertexai.modelparams.md#modelparams_interface)| Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_80bd839)<!---->. |
109
+
|[ModelParams](./vertexai.modelparams.md#modelparams_interface)| Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_c63f46a)<!---->. |
109
110
|[ObjectSchemaInterface](./vertexai.objectschemainterface.md#objectschemainterface_interface)| Interface for [ObjectSchema](./vertexai.objectschema.md#objectschema_class) class. |
110
111
|[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>. |
111
-
|[RequestOptions](./vertexai.requestoptions.md#requestoptions_interface)| Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_80bd839)<!---->. |
112
+
|[RequestOptions](./vertexai.requestoptions.md#requestoptions_interface)| Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_c63f46a)<!---->. |
|[SafetyRating](./vertexai.safetyrating.md#safetyrating_interface)| A safety rating associated with a [GenerateContentCandidate](./vertexai.generatecontentcandidate.md#generatecontentcandidate_interface)|
114
115
|[SafetySetting](./vertexai.safetysetting.md#safetysetting_interface)| Safety setting that can be sent as part of request parameters. |
@@ -139,6 +140,7 @@ The Firebase AI Web SDK.
139
140
| Type Alias | Description |
140
141
| --- | --- |
141
142
|[BackendType](./vertexai.md#backendtype)| Type alias representing valid backend types. It can be either <code>'VERTEX_AI'</code> or <code>'GOOGLE_AI'</code>. |
143
+
|[InferenceMode](./vertexai.md#inferencemode)| Determines whether inference happens on-device or in-cloud. |
142
144
|[Part](./vertexai.md#part)| Content part - includes text, image/video, or function call/response part types. |
143
145
|[Role](./vertexai.md#role)| Role is the producer of the content. |
144
146
|[Tool](./vertexai.md#tool)| Defines a tool that model can call to access external knowledge. |
0 commit comments