mirror of
				https://github.com/amithkoujalgi/ollama4j.git
				synced 2025-11-04 10:30:41 +01:00 
			
		
		
		
	Specifies OllamaChatResponseModel
This commit is contained in:
		@@ -0,0 +1,21 @@
 | 
			
		||||
package io.github.amithkoujalgi.ollama4j.core.models.chat;
 | 
			
		||||
 | 
			
		||||
import com.fasterxml.jackson.annotation.JsonProperty;
 | 
			
		||||
 | 
			
		||||
import java.util.List;
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
 | 
			
		||||
@Data
 | 
			
		||||
public class OllamaChatResponseModel {
 | 
			
		||||
    private String model;
 | 
			
		||||
    private @JsonProperty("created_at") String createdAt;
 | 
			
		||||
    private OllamaChatMessage message;
 | 
			
		||||
    private boolean done;
 | 
			
		||||
    private List<Integer> context;
 | 
			
		||||
    private @JsonProperty("total_duration") Long totalDuration;
 | 
			
		||||
    private @JsonProperty("load_duration") Long loadDuration;
 | 
			
		||||
    private @JsonProperty("prompt_eval_duration") Long promptEvalDuration;
 | 
			
		||||
    private @JsonProperty("eval_duration") Long evalDuration;
 | 
			
		||||
    private @JsonProperty("prompt_eval_count") Integer promptEvalCount;
 | 
			
		||||
    private @JsonProperty("eval_count") Integer evalCount;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user