request_base_google: Base for a request to the Google AI Studio API

View source: R/service-google.R

request_base_googleR Documentation

Base for a request to the Google AI Studio API

Description

This function sends a request to a specific Google AI Studio API endpoint and authenticates with an API key.

Usage

request_base_google(model, key = Sys.getenv("GOOGLE_API_KEY"))

Arguments

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.

Value

An httr2 request object


gptstudio documentation built on May 29, 2024, 12:30 p.m.