Package dev.langchain4j.model.ollama
Class OllamaLanguageModel.OllamaLanguageModelBuilder
java.lang.Object
dev.langchain4j.model.ollama.OllamaLanguageModel.OllamaLanguageModelBuilder
- Enclosing class:
OllamaLanguageModel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
customHeaders
(Map<String, String> customHeaders) Deprecated.logRequests
(Boolean logRequests) logResponses
(Boolean logResponses) maxRetries
(Integer maxRetries) numPredict
(Integer numPredict) repeatPenalty
(Double repeatPenalty) responseFormat
(ResponseFormat responseFormat) temperature
(Double temperature)
-
Constructor Details
-
OllamaLanguageModelBuilder
public OllamaLanguageModelBuilder()
-
-
Method Details
-
baseUrl
-
modelName
-
temperature
-
topK
-
topP
-
repeatPenalty
-
seed
-
numPredict
-
numCtx
-
stop
-
format
Deprecated.Please useresponseFormat(ResponseFormat)
instead. For example:responseFormat(ResponseFormat.JSON)
.
Instead of using JSON mode, consider using structured outputs with JSON schema instead, see more info here. -
responseFormat
-
timeout
-
maxRetries
-
logRequests
-
logResponses
-
customHeaders
public OllamaLanguageModel.OllamaLanguageModelBuilder customHeaders(Map<String, String> customHeaders) -
build
-
responseFormat(ResponseFormat)
instead.