request_base_huggingface {gptstudio} | R Documentation |
Base for a request to the HuggingFace API
Description
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"))
Arguments
task |
character string specifying a HuggingFace API endpoint task |
token |
String containing a HuggingFace API key. Defaults to the HF_API_KEY environmental variable if not specified. |
Value
An httr2 request object
[Package gptstudio version 0.4.0 Index]