1package io.github.ollama4j.models.generate;
3import io.github.ollama4j.utils.Options;
26 request.setPrompt(prompt);
31 this.request.setReturnFormatJson(
true);
36 this.request.setOptions(options.getOptionsMap());
41 this.request.setTemplate(template);
46 this.request.setStream(
true);
51 this.request.setKeepAlive(keepAlive);
OllamaGenerateRequestBuilder withOptions(Options options)
OllamaGenerateRequestBuilder withStreaming()
OllamaGenerateRequest build()
OllamaGenerateRequestBuilder withGetJsonResponse()
OllamaGenerateRequestBuilder withKeepAlive(String keepAlive)
static OllamaGenerateRequestBuilder getInstance(String model)
OllamaGenerateRequestBuilder withPrompt(String prompt)
OllamaGenerateRequestBuilder withTemplate(String template)