Interface Langchain4jHuggingFaceConfig.HuggingFaceConfig
- Enclosing interface:
- Langchain4jHuggingFaceConfig
public static interface Langchain4jHuggingFaceConfig.HuggingFaceConfig
-
Method Summary
Modifier and TypeMethodDescriptionapiKey()HuggingFace API keyChat model related settingsEmbedding model related settingsWhether or not to enable the integration.Whether the HuggingFace client should log requestsWhether the HuggingFace client should log responsestimeout()Timeout for HuggingFace calls
-
Method Details
-
apiKey
HuggingFace API key -
timeout
Timeout for HuggingFace calls -
chatModel
ChatModelConfig chatModel()Chat model related settings -
embeddingModel
EmbeddingModelConfig embeddingModel()Embedding model related settings -
logRequests
Whether the HuggingFace client should log requests -
logResponses
Whether the HuggingFace client should log responses -
enableIntegration
Whether or not to enable the integration. Defaults totrue, which means requests are made to the OpenAI provider. Set tofalseto disable all requests.
-