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;
15import java.time.OffsetDateTime;
19@JsonIgnoreProperties(ignoreUnknown =
true)
25 @JsonProperty(
"modified_at")
26 private OffsetDateTime modifiedAt;
28 @JsonProperty(
"expires_at")
29 private OffsetDateTime expiresAt;
31 private String digest;
34 @JsonProperty(
"details")
43 return name.split(
":")[0];
52 return name.split(
":")[1];
59 .writerWithDefaultPrettyPrinter()
60 .writeValueAsString(
this);
61 }
catch (JsonProcessingException e) {
62 throw new RuntimeException(e);
static ObjectMapper getObjectMapper()