Interface LangChain4jHuggingFaceConfig.HuggingFaceConfig

Enclosing interface:
LangChain4jHuggingFaceConfig

public static interface LangChain4jHuggingFaceConfig.HuggingFaceConfig
  • Method Details

    • apiKey

      @WithDefault("dummy") String apiKey()
      HuggingFace API key
    • timeout

      @WithDefault("10s") Duration timeout()
      Timeout for HuggingFace calls
    • chatModel

      ChatModelConfig chatModel()
      Chat model related settings
    • embeddingModel

      EmbeddingModelConfig embeddingModel()
      Embedding model related settings
    • logRequests

      @ConfigDocDefault("false") Optional<Boolean> logRequests()
      Whether the HuggingFace client should log requests
    • logResponses

      @ConfigDocDefault("false") Optional<Boolean> logResponses()
      Whether the HuggingFace client should log responses
    • enableIntegration

      @WithDefault("true") Boolean enableIntegration()
      Whether or not to enable the integration. Defaults to true, which means requests are made to the OpenAI provider. Set to false to disable all requests.