![]() |
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
)
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.