9package io.github.ollama4j.models.request;
11import com.fasterxml.jackson.annotation.JsonInclude;
12import com.fasterxml.jackson.annotation.JsonProperty;
13import com.fasterxml.jackson.core.JsonProcessingException;
14import io.github.ollama4j.utils.Utils;
19@JsonInclude(JsonInclude.Include.NON_NULL)
30 @JsonProperty(value =
"format", required =
false, defaultValue =
"json")
31 protected Object format;
33 protected Map<String, Object> options;
34 protected String template;
35 protected
boolean stream;
37 @JsonProperty(value = "keep_alive")
38 protected String keepAlive;
40 public String toString() {
43 .writerWithDefaultPrettyPrinter()
44 .writeValueAsString(
this);
45 }
catch (JsonProcessingException e) {
46 throw new RuntimeException(e);
static ObjectMapper getObjectMapper()