-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
I'd like to request a feature that allows customization of the Hugging Face endpoint such that DuckDB can work with huggingface compatible APIs. Right now it looks like the URL is hardcoded to huggingface.co. This should be achievable using a similar pattern to the S3 compatibility via the API Secret.
For example, S3 endpoints are set via the ENDPOINT parameter: https://duckdb.org/docs/stable/core_extensions/httpfs/s3api#overview-of-s3-secret-parameters
Suggested API:
CREATE OR REPLACE SECRET secret (
TYPE huggingface,
TOKEN 'your_hf_token'
ENDPOINT 'your_custom_endpoint` # Defaults to huggingface.co
USE_SSL true # Allows http when set to false
);
Metadata
Metadata
Assignees
Labels
No labels