Package dev.langchain4j.model.ollama
Class OllamaStreamingChatModel.OllamaStreamingChatModelBuilder
java.lang.Object
dev.langchain4j.model.ollama.OllamaStreamingChatModel.OllamaStreamingChatModelBuilder
- Enclosing class:
OllamaStreamingChatModel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
customHeaders
(Map<String, String> customHeaders) Deprecated.listeners
(List<ChatModelListener> listeners) logRequests
(Boolean logRequests) logResponses
(Boolean logResponses) numPredict
(Integer numPredict) repeatPenalty
(Double repeatPenalty) responseFormat
(ResponseFormat responseFormat) supportedCapabilities
(Capability... supportedCapabilities) supportedCapabilities
(Set<Capability> supportedCapabilities) temperature
(Double temperature)
-
Constructor Details
-
OllamaStreamingChatModelBuilder
public OllamaStreamingChatModelBuilder()
-
-
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
public OllamaStreamingChatModel.OllamaStreamingChatModelBuilder responseFormat(ResponseFormat responseFormat) -
timeout
-
customHeaders
public OllamaStreamingChatModel.OllamaStreamingChatModelBuilder customHeaders(Map<String, String> customHeaders) -
logRequests
-
logResponses
-
listeners
public OllamaStreamingChatModel.OllamaStreamingChatModelBuilder listeners(List<ChatModelListener> listeners) -
supportedCapabilities
public OllamaStreamingChatModel.OllamaStreamingChatModelBuilder supportedCapabilities(Set<Capability> supportedCapabilities) -
supportedCapabilities
public OllamaStreamingChatModel.OllamaStreamingChatModelBuilder supportedCapabilities(Capability... supportedCapabilities) -
build
-
responseFormat(ResponseFormat)
instead.