request_base_anthropic {gptstudio}R Documentation

Base for a request to the Anthropic API

Description

This function sends a request to the Anthropic API endpoint and authenticates with an API key.

Usage

request_base_anthropic(key = Sys.getenv("ANTHROPIC_API_KEY"))

Arguments

key

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

Value

An httr2 request object


[Package gptstudio version 0.4.0 Index]