Back to Firebase Js Sdk

VertexAIBackend class

docs-devsite/ai.vertexaibackend.md

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

VertexAIBackend class

Configuration class for the Vertex AI Gemini API.

Use this with AIOptions when initializing the AI service via getAI() to specify the Vertex AI Gemini API as the backend.

<b>Signature:</b>

typescript
export declare class VertexAIBackend extends Backend 

<b>Extends:</b> Backend

Constructors

ConstructorModifiersDescription
(constructor)(location)Creates a configuration object for the Vertex AI backend.

Properties

PropertyModifiersTypeDescription
locationstringThe region identifier. See Vertex AI locations for a list of supported locations.

VertexAIBackend.(constructor)

Creates a configuration object for the Vertex AI backend.

<b>Signature:</b>

typescript
constructor(location?: string);

Parameters

ParameterTypeDescription
locationstringThe region identifier, defaulting to <code>us-central1</code>; see Vertex AI locations for a list of supported locations.

VertexAIBackend.location

The region identifier. See Vertex AI locations for a list of supported locations.

<b>Signature:</b>

typescript
readonly location: string;