Skip to contents

Validates Claude API connectivity with a minimal request. Useful for testing configuration before executing complex operations.

Usage

artclaude_health_check(ml = NULL)

Arguments

ml

Model to test (default: ART_CLAUDE_MODEL env var)

Value

Logical TRUE if successful, otherwise throws an error with diagnostics.

Details

Performs a minimal API request to verify:

  • API key is valid

  • Network connectivity

  • Model is accessible

See also

Other configuration: claude_models(), config

Examples

if (FALSE) { # \dontrun{
artclaude_health_check()
artclaude_health_check(ml = "claude-sonnet-4-5-20250929")
} # }