![]() |
Captures default client configuration.
google.generativeai.configure(
*,
api_key: (str | None) = None,
credentials: (ga_credentials.Credentials | dict | None) = None,
transport: (str | None) = None,
client_options: (client_options_lib.ClientOptions | dict | None) = None,
client_info: (gapic_v1.client_info.ClientInfo | None) = None,
default_metadata: Sequence[tuple[str, str]] = ()
)
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.