Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaImageResult.java
Go to the documentation of this file.
1/*
2 * Ollama4j - Java library for interacting with Ollama server.
3 * Copyright (c) 2025 Amith Koujalgi and contributors.
4 *
5 * Licensed under the MIT License (the "License");
6 * you may not use this file except in compliance with the License.
7 *
8*/
9package io.github.ollama4j.models.response;
10
11import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
12import com.fasterxml.jackson.annotation.JsonProperty;
13import lombok.Data;
14import lombok.Getter;
15import lombok.Setter;
16
20@Getter
21@Setter
22@SuppressWarnings("unused")
23@Data
24@JsonIgnoreProperties(ignoreUnknown = true)
25public class OllamaImageResult {
29 private long responseTime = 0;
30
31 private String model;
32
33 @JsonProperty("created_at")
34 private String createdAt;
35
36 private Integer completed;
37 private Integer total;
38 private boolean done;
39 private String image;
40
41 @JsonProperty("done_reason")
42 private String doneReason;
43
44 @JsonProperty("total_duration")
45 private Long totalDuration;
46
47 @JsonProperty("load_duration")
48 private Long loadDuration;
49}