Class ServiceConfig.Hf

java.lang.Object
org.apache.opendal.ServiceConfig.Hf
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.Hf extends Object implements ServiceConfig
Configuration for service hf.
  • Field Details

    • downloadMode

      public final String downloadMode

      Download mode. Either xet (default) or http.

      When unset, the mode is resolved from the HF_HUB_DISABLE_XET environment variable: a non-empty value forces http, otherwise it defaults to xet. An explicit value here takes precedence.

      See https://huggingface.co/docs/huggingface_hub/package_reference/environment_variables#hfhubdisablexet.

    • endpoint

      public final String endpoint

      Endpoint of the Hugging Face Hub.

      Default is "https://huggingface.co".

    • repoId

      public final String repoId

      Repo id of this backend.

      This is required.

    • repoType

      public final String repoType

      Repo type of this backend. Required.

    • revision

      public final String revision

      Revision of this backend.

      Default is main.

    • root

      public final String root

      Root of this backend. Can be "/path/to/dir".

      Default is "/".

    • token

      public final String token

      Token of this backend.

      This is optional.

  • Constructor Details

    • Hf

      public Hf()
  • Method Details