Class HuggingFaceChatModel.Builder
java.lang.Object
dev.langchain4j.model.huggingface.HuggingFaceChatModel.Builder
- Enclosing class:
HuggingFaceChatModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) build()httpClientBuilder(HttpClientBuilder httpClientBuilder) Sets the HTTP client builder that will be used to create the HTTP client to communicate with HuggingFace.maxNewTokens(Integer maxNewTokens) returnFullText(Boolean returnFullText) temperature(Double temperature) waitForModel(Boolean waitForModel)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpClientBuilder
Sets the HTTP client builder that will be used to create the HTTP client to communicate with HuggingFace.- Parameters:
httpClientBuilder- the HTTP client builder to use- Returns:
this
-
baseUrl
-
accessToken
-
modelId
-
timeout
-
temperature
-
maxNewTokens
-
returnFullText
-
waitForModel
-
build
-