foundry_get_key: Get Azure AI Foundry API Key

View source: R/auth.R

foundry_get_keyR Documentation

Get Azure AI Foundry API Key

Description

Retrieve the API key from the environment or a provided value. This is primarily an internal function used by other foundryR functions.

Usage

foundry_get_key(key = NULL, required = FALSE)

Arguments

key

Character. Optional key to use instead of environment variable.

required

Logical. If TRUE, throws an error when no key is found.

Value

The API key string, or NULL if not found and not required.


foundryR documentation built on Sept. 25, 2026, 1:10 a.m.