has_api_key: Check if specific provider key is available

View source: R/utils_env.R

has_api_keyR Documentation

Check if specific provider key is available

Description

Check if specific provider key is available

Usage

has_api_key(provider)

Arguments

provider

Provider name ("openai" or "anthropic")

Value

TRUE if key is available and valid


aisdk documentation built on May 29, 2026, 9:07 a.m.