Skip to contents

A function that sends a request to the PALM (MakerSuite) API and returns the response.

Usage

query_api_palm(model, request_body, key = Sys.getenv("PALM_API_KEY"))

Arguments

model

A character string that specifies the model to send to the API.

request_body

A list that contains the parameters for the task.

key

String containing a PALM (MakerSuite) API key. Defaults to the PALM_API_KEY environmental variable if not specified.

Value

The response from the API.