Base for a request to the HuggingFace API
Source:R/service-huggingface.R
request_base_huggingface.Rd
This function sends a request to a specific HuggingFace API endpoint and authenticates with an API key using a Bearer token.
Usage
request_base_huggingface(task, token = Sys.getenv("HF_API_KEY"))