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. |
@@ -127,7 +126,6 @@ The Firebase AI Web SDK.
127
126
|[ThinkingConfig](./ai.thinkingconfig.md#thinkingconfig_interface)| Configuration for "thinking" behavior of compatible Gemini models.<!---->Certain models utilize a thinking process before generating a response. This allows them to reason through complex problems and plan a more coherent and accurate answer. |
128
127
|[ToolConfig](./ai.toolconfig.md#toolconfig_interface)| Tool config. This config is shared for all tools provided in the request. |
129
128
|[UsageMetadata](./ai.usagemetadata.md#usagemetadata_interface)| Usage metadata about a [GenerateContentResponse](./ai.generatecontentresponse.md#generatecontentresponse_interface)<!---->. |
130
-
|[VertexAIOptions](./ai.vertexaioptions.md#vertexaioptions_interface)| Options when initializing the Firebase AI SDK. |
131
129
|[VideoMetadata](./ai.videometadata.md#videometadata_interface)| Describes the input video content. |
|[WebGroundingChunk](./ai.webgroundingchunk.md#webgroundingchunk_interface)| A grounding chunk from the web.<!---->Important: If using Grounding with Google Search, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search". |
@@ -139,8 +137,6 @@ The Firebase AI Web SDK.
139
137
|[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. |
140
138
|[POSSIBLE\_ROLES](./ai.md#possible_roles)| Possible roles. |
141
139
|[ResponseModality](./ai.md#responsemodality)| <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
142
-
|[VertexAIError](./ai.md#vertexaierror)||
143
-
|[VertexAIModel](./ai.md#vertexaimodel)||
144
140
145
141
## Type Aliases
146
142
@@ -152,7 +148,6 @@ The Firebase AI Web SDK.
152
148
|[Role](./ai.md#role)| Role is the producer of the content. |
153
149
|[Tool](./ai.md#tool)| Defines a tool that model can call to access external knowledge. |
154
150
|[TypedSchema](./ai.md#typedschema)| A type that includes all specific Schema types. |
155
-
|[VertexAI](./ai.md#vertexai)||
156
151
157
152
## function(app, ...)
158
153
@@ -205,32 +200,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)<!---->.
213
-
>
214
-
> 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. |
228
-
| 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)<!---->.
335
-
>
336
-
> Error class for the Firebase AI SDK.
337
-
>
338
-
339
-
<b>Signature:</b>
340
-
341
-
```typescript
342
-
VertexAIError: typeofAIError
343
-
```
344
-
345
-
## VertexAIModel
346
-
347
-
> Warning: This API is now obsolete.
348
-
>
349
-
> 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)<!---->.
350
-
>
351
-
> Base class for Firebase AI model APIs.
352
-
>
353
-
354
-
<b>Signature:</b>
355
-
356
-
```typescript
357
-
VertexAIModel: typeofAIModel
358
-
```
359
-
360
299
## BackendType
361
300
362
301
Type alias representing valid backend types. It can be either `'VERTEX_AI'` or `'GOOGLE_AI'`<!---->.
@@ -420,21 +359,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)<!---->.
428
-
>
429
-
> An instance of the Firebase AI SDK.
430
-
>
431
-
432
-
<b>Signature:</b>
433
-
434
-
```typescript
435
-
exporttypeVertexAI=AI;
436
-
```
437
-
438
362
## AIErrorCode
439
363
440
364
Standardized error codes that [AIError](./ai.aierror.md#aierror_class) can have.
0 commit comments