VertexAIBackend class
Stay organized with collections
Save and categorize content based on your preferences.
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.
Signature:
export declare class VertexAIBackend extends Backend
Extends: Backend
Constructors
Constructor |
Modifiers |
Description |
(constructor)(location) |
|
Creates a configuration object for the Vertex AI backend. |
Properties
VertexAIBackend.(constructor)
Creates a configuration object for the Vertex AI backend.
Signature:
constructor(location?: string);
Parameters
Parameter |
Type |
Description |
location |
string |
The region identifier, defaulting to us-central1 ; 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.
Signature:
readonly location: string;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["Configuration class for the Vertex AI Gemini API.\n\nUse this with [AIOptions](./ai.aioptions.md#aioptions_interface) when initializing the AI service via [getAI()](./ai.md#getai_a94a413) to specify the Vertex AI Gemini API as the backend.\n\n**Signature:** \n\n export declare class VertexAIBackend extends Backend \n\n**Extends:** [Backend](./ai.backend.md#backend_class)\n\nConstructors\n\nProperties\n\nVertexAIBackend.(constructor)\n\nCreates a configuration object for the Vertex AI backend.\n\n**Signature:** \n\n constructor(location?: string);\n\nParameters\n\nVertexAIBackend.location\n\nThe region identifier. See [Vertex AI locations](https://firebase.google.com/docs/vertex-ai/locations#available-locations) for a list of supported locations.\n\n**Signature:** \n\n readonly location: string;"]]