AIOptions interface

Options for initializing the AI service using getAI(). This allows specifying which backend to use (Vertex AI Gemini API or Gemini Developer API) and configuring its specific options (like location for Vertex AI).

Signature:

export interface AIOptions 

Properties

Property Type Description
backend Backend The backend configuration to use for the AI service instance. Defaults to the Gemini Developer API backend (GoogleAIBackend).
useLimitedUseAppCheckTokens boolean Whether to use App Check limited use tokens. Defaults to false.

AIOptions.backend

The backend configuration to use for the AI service instance. Defaults to the Gemini Developer API backend (GoogleAIBackend).

Signature:

backend?: Backend;

AIOptions.useLimitedUseAppCheckTokens

Whether to use App Check limited use tokens. Defaults to false.

Signature:

useLimitedUseAppCheckTokens?: boolean;