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.

    • 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