View source: R/service-google.R
request_base_google | R Documentation |
This function sends a request to a specific Google AI Studio API endpoint and authenticates with an API key.
request_base_google(model, key = Sys.getenv("GOOGLE_API_KEY"))
model |
character string specifying a Google AI Studio API model |
key |
String containing a Google AI Studio API key. Defaults to the GOOGLE_API_KEY environmental variable if not specified. |
An httr2 request object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.