1package io.github.ollama4j.models.request;
4import com.fasterxml.jackson.annotation.JsonInclude;
5import com.fasterxml.jackson.annotation.JsonProperty;
6import com.fasterxml.jackson.core.JsonProcessingException;
7import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9import io.github.ollama4j.utils.BooleanToJsonFormatFlagSerializer;
10import io.github.ollama4j.utils.Utils;
14@JsonInclude(JsonInclude.Include.NON_NULL)
19 @JsonProperty(value =
"format")
20 protected Boolean returnFormatJson;
21 protected Map<String, Object> options;
22 protected String template;
23 protected
boolean stream;
24 @JsonProperty(value = "keep_alive")
25 protected String keepAlive;
28 public String toString() {
31 }
catch (JsonProcessingException e) {
32 throw new RuntimeException(e);
static ObjectMapper getObjectMapper()