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.md
+23-11
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ The Firebase AI Web SDK.
18
18
| --- | --- |
19
19
| <b>function(app, ...)</b> |
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. |
21
-
|[getVertexAI(app, options)](./ai.md#getvertexai_04094cf)|It is recommended to use the new [getAI()](./ai.md#getai_a94a413)<!---->.<!---->Returns a [VertexAI](./ai.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. |
21
+
|[getVertexAI(app, options)](./ai.md#getvertexai_04094cf)| Returns a [VertexAI](./ai.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
23
|[getGenerativeModel(ai, modelParams, requestOptions)](./ai.md#getgenerativemodel_80bd839)| 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. |
@@ -132,8 +132,8 @@ The Firebase AI Web SDK.
132
132
|[BackendType](./ai.md#backendtype)| An enum-like object containing constants that represent the supported backends for the Firebase AI SDK. This determines which backend service (Vertex AI Gemini API or Gemini Developer API) the SDK will communicate with.<!---->These values are assigned to the <code>backendType</code> 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. |
133
133
|[POSSIBLE\_ROLES](./ai.md#possible_roles)| Possible roles. |
134
134
|[ResponseModality](./ai.md#responsemodality)| <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
135
-
|[VertexAIError](./ai.md#vertexaierror)| Error class for the Firebase AI SDK.<!---->For more information, refer to the documentation for the new [AIError](./ai.aierror.md#aierror_class)<!---->.|
136
-
|[VertexAIModel](./ai.md#vertexaimodel)| Base class for Firebase AI model APIs.<!---->For more information, refer to the documentation for the new [AIModel](./ai.aimodel.md#aimodel_class)<!---->.|
135
+
|[VertexAIError](./ai.md#vertexaierror)| Error class for the Firebase AI SDK. |
136
+
|[VertexAIModel](./ai.md#vertexaimodel)| Base class for Firebase AI model APIs. |
137
137
138
138
## Type Aliases
139
139
@@ -145,7 +145,7 @@ The Firebase AI Web SDK.
145
145
|[Role](./ai.md#role)| Role is the producer of the content. |
146
146
|[Tool](./ai.md#tool)| Defines a tool that model can call to access external knowledge. |
147
147
|[TypedSchema](./ai.md#typedschema)| A type that includes all specific Schema types. |
148
-
|[VertexAI](./ai.md#vertexai)| An instance of the Firebase AI SDK.<!---->For more information, refer to the documentation for the new [AI](./ai.ai.md#ai_interface) interface.|
148
+
|[VertexAI](./ai.md#vertexai)| An instance of the Firebase AI SDK. |
149
149
150
150
## function(app, ...)
151
151
@@ -200,7 +200,10 @@ const ai = getAI(app, { backend: new VertexAIBackend() });
It is recommended to use the new [getAI()](./ai.md#getai_a94a413)<!---->.
203
+
> Warning: This API is now obsolete.
204
+
>
205
+
> Use the new [getAI()](./ai.md#getai_a94a413) instead. The Vertex AI in Firebase SDK has been replaced with the Firebase AI SDK to accommodate the evolving set of supported features and services. For migration details, see the [migration guide](https://firebase.google.com/docs/vertex-ai/migrate-to-latest-sdk)<!---->.
206
+
>
204
207
205
208
Returns a [VertexAI](./ai.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.
206
209
@@ -319,9 +322,12 @@ ResponseModality: {
319
322
320
323
## VertexAIError
321
324
322
-
Error class for the Firebase AI SDK.
325
+
> Warning: This API is now obsolete.
326
+
>
327
+
> Use the new [AIError](./ai.aierror.md#aierror_class) instead. The Vertex AI in Firebase SDK has been replaced with the Firebase AI SDK to accommodate the evolving set of supported features and services. For migration details, see the [migration guide](https://firebase.google.com/docs/vertex-ai/migrate-to-latest-sdk)<!---->.
328
+
>
323
329
324
-
For more information, refer to the documentation for the new [AIError](./ai.aierror.md#aierror_class)<!---->.
> Use the new [AIModel](./ai.aimodel.md#aimodel_class) instead. The Vertex AI in Firebase SDK has been replaced with the Firebase AI SDK to accommodate the evolving set of supported features and services. For migration details, see the [migration guide](https://firebase.google.com/docs/vertex-ai/migrate-to-latest-sdk)<!---->.
343
+
>
335
344
336
-
For more information, refer to the documentation for the new [AIModel](./ai.aimodel.md#aimodel_class)<!---->.
> Use the new [AI](./ai.ai.md#ai_interface) instead. The Vertex AI in Firebase SDK has been replaced with the Firebase AI SDK to accommodate the evolving set of supported features and services. For migration details, see the [migration guide](https://firebase.google.com/docs/vertex-ai/migrate-to-latest-sdk)<!---->.
421
+
>
410
422
411
-
For more information, refer to the documentation for the new [AI](./ai.ai.md#ai_interface) interface.
0 commit comments