Back to Firebase Js Sdk

Backend class

docs-devsite/ai.backend.md

12.12.11.6 KB
Original Source

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 %}

Backend class

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>

typescript
export declare abstract class Backend 

Constructors

ConstructorModifiersDescription
(constructor)(type)Protected constructor for use by subclasses.

Properties

PropertyModifiersTypeDescription
backendTypeBackendTypeSpecifies the backend type.

Backend.(constructor)

Protected constructor for use by subclasses.

<b>Signature:</b>

typescript
protected constructor(type: BackendType);

Parameters

ParameterTypeDescription
typeBackendTypeThe backend type.

Backend.backendType

Specifies the backend type.

<b>Signature:</b>

typescript
readonly backendType: BackendType;