Skip to content

Feature Request: Customize HF Endpoint #150

@SandyChapman

Description

@SandyChapman

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions