docs-devsite/ai.backend.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
Abstract base class representing the configuration for an AI service backend. This class should not be instantiated directly. Use its subclasses; GoogleAIBackend for the Gemini Developer API (via Google AI<!-- -->), and VertexAIBackend for the Vertex AI Gemini API.
<b>Signature:</b>
export declare abstract class Backend
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(type) | Protected constructor for use by subclasses. |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| backendType | BackendType | Specifies the backend type. |
Protected constructor for use by subclasses.
<b>Signature:</b>
protected constructor(type: BackendType);
| Parameter | Type | Description |
|---|---|---|
| type | BackendType | The backend type. |
Specifies the backend type.
<b>Signature:</b>
readonly backendType: BackendType;