Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaChatResponseModel.java
Go to the documentation of this file.
1
package
io.github.ollama4j.models.chat;
2
3
import
com.fasterxml.jackson.annotation.JsonProperty;
4
import
lombok.Data;
5
6
import
java.util.List;
7
8
@Data
9
public
class
OllamaChatResponseModel
{
10
private
String model;
11
private
@JsonProperty(
"created_at"
) String createdAt;
12
private
@JsonProperty(
"done_reason"
) String doneReason;
13
private
OllamaChatMessage
message;
14
private
boolean
done;
15
private
String error;
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
}
io.github.ollama4j.models.chat.OllamaChatMessage
Definition
OllamaChatMessage.java:27
io.github.ollama4j.models.chat.OllamaChatResponseModel
Definition
OllamaChatResponseModel.java:9
src
main
java
io
github
ollama4j
models
chat
OllamaChatResponseModel.java
Generated by
1.12.0