google.generativeai.configure#

Captures default client configuration.

If no API key has been provided (either directly, or on client_options) and the GOOGLE_API_KEY environment variable is set, it will be used as the API key.

Note: Not all arguments are detailed below. Refer to the *ServiceClient classes in google.ai.generativelanguage for details on the other arguments.

transport

A string, one of: [rest, grpc, grpc_asyncio].

api_key

The API-Key to use when creating the default clients (each service uses a separate client). This is a shortcut for client_options={"api_key": api_key}. If omitted, and the GOOGLE_API_KEY environment variable is set, it will be used.

default_metadata

Default (key, value) metadata pairs to send with every request. when using transport="rest" these are sent as HTTP headers.