Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
ModelsProcessResponse.java
Go to the documentation of this file.
1package io.github.ollama4j.models.ps;
2
3import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4import com.fasterxml.jackson.annotation.JsonProperty;
5import lombok.Data;
6import lombok.NoArgsConstructor;
7
8import java.util.List;
9
10@Data
11@NoArgsConstructor
12@JsonIgnoreProperties(ignoreUnknown = true)
14 @JsonProperty("models")
15 private List<ModelProcess> models;
16
17 @Data
18 @NoArgsConstructor
19 public static class ModelProcess {
20 @JsonProperty("name")
21 private String name;
22
23 @JsonProperty("model")
24 private String model;
25
26 @JsonProperty("size")
27 private long size;
28
29 @JsonProperty("digest")
30 private String digest;
31
32 @JsonProperty("details")
33 private ModelDetails details;
34
35 @JsonProperty("expires_at")
36 private String expiresAt; // Consider using LocalDateTime if you need to process date/time
37
38 @JsonProperty("size_vram")
39 private long sizeVram;
40 }
41
42 @Data
43 @NoArgsConstructor
44 public static class ModelDetails {
45 @JsonProperty("parent_model")
46 private String parentModel;
47
48 @JsonProperty("format")
49 private String format;
50
51 @JsonProperty("family")
52 private String family;
53
54 @JsonProperty("families")
55 private List<String> families;
56
57 @JsonProperty("parameter_size")
58 private String parameterSize;
59
60 @JsonProperty("quantization_level")
61 private String quantizationLevel;
62 }
63}