| hf_build_request | R Documentation |
Internal factory function to construct httr2 request objects for batch processing.
hf_build_request(
model_id,
inputs,
parameters = NULL,
token = NULL,
wait_for_model = TRUE,
use_cache = TRUE,
endpoint_url = NULL
)
model_id |
Character string. The model ID on Hugging Face Hub. |
inputs |
The input data (usually character vector or list). |
parameters |
Optional list of parameters for the inference. |
token |
Character string or NULL. API token for authentication. |
wait_for_model |
Deprecated no-op retained for internal compatibility. |
use_cache |
Deprecated no-op retained for internal compatibility. |
endpoint_url |
Character string or NULL. A custom Inference Endpoint URL. |
An httr2 request object ready for execution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.