Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
ModelDetail.java
Go to the documentation of this file.
1package io.github.ollama4j.models.response;
2
3import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4import com.fasterxml.jackson.annotation.JsonProperty;
5import com.fasterxml.jackson.core.JsonProcessingException;
6import io.github.ollama4j.utils.Utils;
7import lombok.Data;
8
9@Data
10@JsonIgnoreProperties(ignoreUnknown = true)
11public class ModelDetail {
12 private String license;
13
14 @JsonProperty("modelfile")
15 private String modelFile;
16
17 private String parameters;
18 private String template;
19 private String system;
20 private ModelMeta details;
21
22 @Override
23 public String toString() {
24 try {
25 return Utils.getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(this);
26 } catch (JsonProcessingException e) {
27 throw new RuntimeException(e);
28 }
29 }
30}
static ObjectMapper getObjectMapper()
Definition Utils.java:17