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
-76Lines changed: 0 additions & 76 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@ 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. |
|[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
23
|[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. |
@@ -121,7 +120,6 @@ The Firebase AI Web SDK.
121
120
|[TextPart](./ai.textpart.md#textpart_interface)| Content part interface if the part represents a text string. |
122
121
|[ToolConfig](./ai.toolconfig.md#toolconfig_interface)| Tool config. This config is shared for all tools provided in the request. |
123
122
|[UsageMetadata](./ai.usagemetadata.md#usagemetadata_interface)| Usage metadata about a [GenerateContentResponse](./ai.generatecontentresponse.md#generatecontentresponse_interface)<!---->. |
124
-
|[VertexAIOptions](./ai.vertexaioptions.md#vertexaioptions_interface)| Options when initializing the Firebase AI SDK. |
125
123
|[VideoMetadata](./ai.videometadata.md#videometadata_interface)| Describes the input video content. |
|[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
131
|[POSSIBLE\_ROLES](./ai.md#possible_roles)| Possible roles. |
134
132
|[ResponseModality](./ai.md#responsemodality)| <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
135
-
|[VertexAIError](./ai.md#vertexaierror)||
136
-
|[VertexAIModel](./ai.md#vertexaimodel)||
137
133
138
134
## Type Aliases
139
135
@@ -145,7 +141,6 @@ The Firebase AI Web SDK.
145
141
|[Role](./ai.md#role)| Role is the producer of the content. |
146
142
|[Tool](./ai.md#tool)| Defines a tool that model can call to access external knowledge. |
147
143
|[TypedSchema](./ai.md#typedschema)| A type that includes all specific Schema types. |
148
-
|[VertexAI](./ai.md#vertexai)||
149
144
150
145
## function(app, ...)
151
146
@@ -198,32 +193,6 @@ const ai = getAI(app, { backend: new VertexAIBackend() });
> 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
-
>
207
-
> 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.
| app |[FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)| The [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) to use. |
221
-
| options |[VertexAIOptions](./ai.vertexaioptions.md#vertexaioptions_interface)| Options to configure the Vertex AI instance, including the location. |
> 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
-
>
329
-
> Error class for the Firebase AI SDK.
330
-
>
331
-
332
-
<b>Signature:</b>
333
-
334
-
```typescript
335
-
VertexAIError: typeofAIError
336
-
```
337
-
338
-
## VertexAIModel
339
-
340
-
> Warning: This API is now obsolete.
341
-
>
342
-
> 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
-
>
344
-
> Base class for Firebase AI model APIs.
345
-
>
346
-
347
-
<b>Signature:</b>
348
-
349
-
```typescript
350
-
VertexAIModel: typeofAIModel
351
-
```
352
-
353
292
## BackendType
354
293
355
294
Type alias representing valid backend types. It can be either `'VERTEX_AI'` or `'GOOGLE_AI'`<!---->.
@@ -413,21 +352,6 @@ A type that includes all specific Schema types.
> 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
-
>
422
-
> An instance of the Firebase AI SDK.
423
-
>
424
-
425
-
<b>Signature:</b>
426
-
427
-
```typescript
428
-
exporttypeVertexAI=AI;
429
-
```
430
-
431
355
## AIErrorCode
432
356
433
357
Standardized error codes that [AIError](./ai.aierror.md#aierror_class) can have.
0 commit comments