hf_get_token: Get Hugging Face API Token

View source: R/auth.R

hf_get_tokenR Documentation

Get Hugging Face API Token

Description

Internal function to retrieve the API token from environment or parameter.

Usage

hf_get_token(token = NULL, required = FALSE)

Arguments

token

Character string or NULL

required

Logical. If TRUE, throws error if no token found.

Value

Character string with token, or NULL if not found and not required.


huggingfaceR documentation built on Aug. 30, 2026, 1:06 a.m.