9package io.github.ollama4j.models.response;
11import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
12import com.fasterxml.jackson.annotation.JsonProperty;
13import com.fasterxml.jackson.core.JsonProcessingException;
14import io.github.ollama4j.utils.Utils;
19@JsonIgnoreProperties(ignoreUnknown =
true)
21 private String license;
23 @JsonProperty(
"modelfile")
24 private String modelFile;
26 private String parameters;
27 private String
template;
28 private String system;
30 private String[] capabilities;
37 @JsonProperty(
"model_info")
38 private Map<String, Object> modelInfo;
44 .writerWithDefaultPrettyPrinter()
45 .writeValueAsString(
this);
46 }
catch (JsonProcessingException e) {
47 throw new RuntimeException(e);
static ObjectMapper getObjectMapper()