request_base_anthropic: Base for a request to the Anthropic API

View source: R/service-anthropic.R

request_base_anthropicR 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


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