Skip to content

Support HF_HOME and HF_ENDPOINT #178

Description

@DayNice

Hello, I have noticed that HF_HOME and HF_ENDPOINT environment variables are not supported.

I presume this is because this library uses ApiBuilder::new, not ApiBuilder::from_env for hf_hub::api::sync::ApiBuilder.

Would it be possible to update all constructors from ApiBuilder::new into ApiBuilder::from_env?

  1. I noticed this library uses hf-hub crate version 0.4.2
  2. This version supports loading HF_HOME and HF_ENDPOINT through ApiBuilder::from_env.
  3. A developer commented in this issue that this is an opt-in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions