RequestOptions interface

Params passed to getGenerativeModel().

Signature:

export interface RequestOptions 

Properties

Property Type Description
baseUrl string Base url for endpoint. Defaults to https://firebasevertexai.googleapis.com, which is the Firebase AI Logic API (used regardless of your chosen Gemini API provider).
timeout number Request timeout in milliseconds. Defaults to 180 seconds (180000ms).

RequestOptions.baseUrl

Base url for endpoint. Defaults to https://firebasevertexai.googleapis.com, which is the Firebase AI Logic API (used regardless of your chosen Gemini API provider).

Signature:

baseUrl?: string;

RequestOptions.timeout

Request timeout in milliseconds. Defaults to 180 seconds (180000ms).

Signature:

timeout?: number;