request_base_anthropic: 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"))
Value
An httr2 request object
Arguments
- key
String containing an Anthropic API key. Defaults to the
ANTHROPIC_API_KEY environmental variable if not specified.