Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaGenerateResponseModel.java
Go to the documentation of this file.
1package io.github.ollama4j.models.generate;
2
3import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4import com.fasterxml.jackson.annotation.JsonProperty;
5
6import java.util.List;
7import lombok.Data;
8
9@Data
10@JsonIgnoreProperties(ignoreUnknown = true)
12 private String model;
13 private @JsonProperty("created_at") String createdAt;
14 private String response;
15 private boolean done;
16 private List<Integer> context;
17 private @JsonProperty("total_duration") Long totalDuration;
18 private @JsonProperty("load_duration") Long loadDuration;
19 private @JsonProperty("prompt_eval_duration") Long promptEvalDuration;
20 private @JsonProperty("eval_duration") Long evalDuration;
21 private @JsonProperty("prompt_eval_count") Integer promptEvalCount;
22 private @JsonProperty("eval_count") Integer evalCount;
23}