Home > @google/generative-ai > RequestOptions
Params passed to getGenerativeModel() or GoogleAIFileManager().
Signature:
export interface RequestOptions
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. |