Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.29 KB

generative-ai.requestoptions.md

File metadata and controls

24 lines (16 loc) · 1.29 KB

Home > @google/generative-ai > RequestOptions

RequestOptions interface

Params passed to getGenerativeModel() or GoogleAIFileManager().

Signature:

export interface RequestOptions 

Properties

Property Modifiers Type Description
apiClient? string (Optional) Additional attribution information to include in the x-goog-api-client header. Used by wrapper SDKs.
apiVersion? string (Optional) Version of API endpoint to call (e.g. "v1" or "v1beta"). If not specified, defaults to latest stable version.
baseUrl? string (Optional) Base endpoint url. Defaults to "https://generativelanguage.googleapis.com"
customHeaders? Headers | Record<string, string> (Optional) Custom HTTP request headers.
timeout? number (Optional) Request timeout in milliseconds.