Package dev.langchain4j.model.ollama
Class OllamaModels.OllamaModelsBuilder
java.lang.Object
dev.langchain4j.model.ollama.OllamaModels.OllamaModelsBuilder
- Enclosing class:
OllamaModels
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
httpClientBuilder
(HttpClientBuilder httpClientBuilder) Sets theHttpClientBuilder
that will be used to create theHttpClient
that will be used to communicate with Ollama.logRequests
(Boolean logRequests) logResponses
(Boolean logResponses) maxRetries
(Integer maxRetries)
-
Constructor Details
-
OllamaModelsBuilder
public OllamaModelsBuilder()
-
-
Method Details
-
httpClientBuilder
Sets theHttpClientBuilder
that will be used to create theHttpClient
that will be used to communicate with Ollama.NOTE:
timeout(Duration)
overrides timeouts set on theHttpClientBuilder
. -
baseUrl
-
timeout
-
maxRetries
-
logRequests
-
logResponses
-
build
-