hf_clear_provider_cache: Clear the Cached Inference Provider Mappings

View source: R/providers.R

hf_clear_provider_cacheR Documentation

Clear the Cached Inference Provider Mappings

Description

‘huggingfaceR' caches each model’s Hugging Face provider mapping for the duration of the R session so that repeated inference calls do not re-query the Hub. Call this function to discard the cache after provider availability changes, or in tests.

Usage

hf_clear_provider_cache()

Value

'NULL', invisibly.

Examples

hf_clear_provider_cache()

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