Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaChatRequest.java
Go to the documentation of this file.
1package io.github.ollama4j.models.chat;
2
3import java.util.List;
4
5import io.github.ollama4j.models.request.OllamaCommonRequest;
6import io.github.ollama4j.utils.OllamaRequestBody;
7
8import lombok.Getter;
9import lombok.Setter;
10
18@Getter
19@Setter
21
22 private List<OllamaChatMessage> messages;
23
25
26 public OllamaChatRequest(String model, List<OllamaChatMessage> messages) {
27 this.model = model;
28 this.messages = messages;
29 }
30
31 @Override
32 public boolean equals(Object o) {
33 if (!(o instanceof OllamaChatRequest)) {
34 return false;
35 }
36
37 return this.toString().equals(o.toString());
38 }
39
40}
OllamaChatRequest(String model, List< OllamaChatMessage > messages)