ReqAnthropic.AuthError exception (ReqAnthropic v0.2.1)

Copy Markdown View Source

Raised when no API key can be resolved. ReqAnthropic checks, in order:

  1. The :api_key option passed to the function.
  2. Application.get_env(:req_anthropic, :api_key).
  3. The ANTHROPIC_API_KEY environment variable.