This function sends a request to a specific HuggingFace API endpoint and authenticates with an API key using a Bearer token.
request_base_huggingface(task, token = Sys.getenv("HF_API_KEY"))
An httr2 request object
character string specifying a HuggingFace API endpoint task
String containing a HuggingFace API key. Defaults to the HF_API_KEY environmental variable if not specified.