query_api_anthropic: A function that sends a request to the Anthropic API and...

View source: R/service-anthropic.R

query_api_anthropicR Documentation

A function that sends a request to the Anthropic API and returns the response.

Description

A function that sends a request to the Anthropic API and returns the response.

Usage

query_api_anthropic(request_body, key = Sys.getenv("ANTHROPIC_API_KEY"))

Arguments

request_body

A list that contains the parameters for the task.

key

String containing an Anthropic API key. Defaults to the ANTHROPIC_API_KEY environmental variable if not specified.

Value

The response from the API.


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