Class OllamaGenerateRequestBuilder
- java.lang.Object
-
- io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder
-
public class OllamaGenerateRequestBuilder extends Object
Helper class for creatingOllamaGenerateRequest
objects using the builder-pattern.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OllamaGenerateRequest
build()
static OllamaGenerateRequestBuilder
getInstance(String model)
OllamaGenerateRequestBuilder
withGetJsonResponse()
OllamaGenerateRequestBuilder
withKeepAlive(String keepAlive)
OllamaGenerateRequestBuilder
withOptions(Options options)
OllamaGenerateRequestBuilder
withPrompt(String prompt)
OllamaGenerateRequestBuilder
withStreaming()
OllamaGenerateRequestBuilder
withTemplate(String template)
-
-
-
Method Detail
-
getInstance
public static OllamaGenerateRequestBuilder getInstance(String model)
-
build
public OllamaGenerateRequest build()
-
withPrompt
public OllamaGenerateRequestBuilder withPrompt(String prompt)
-
withGetJsonResponse
public OllamaGenerateRequestBuilder withGetJsonResponse()
-
withOptions
public OllamaGenerateRequestBuilder withOptions(Options options)
-
withTemplate
public OllamaGenerateRequestBuilder withTemplate(String template)
-
withStreaming
public OllamaGenerateRequestBuilder withStreaming()
-
withKeepAlive
public OllamaGenerateRequestBuilder withKeepAlive(String keepAlive)
-
-