Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaChatRequest.java
Go to the documentation of this file.
1
package
io.github.ollama4j.models.chat;
2
3
import
java.util.List;
4
5
import
io.github.ollama4j.models.request.OllamaCommonRequest;
6
import
io.github.ollama4j.utils.OllamaRequestBody;
7
8
import
lombok.Getter;
9
import
lombok.Setter;
10
18
@Getter
19
@Setter
20
public
class
OllamaChatRequest
extends
OllamaCommonRequest
implements
OllamaRequestBody
{
21
22
private
List<OllamaChatMessage> messages;
23
24
public
OllamaChatRequest
() {}
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
}
io.github.ollama4j.models.chat.OllamaChatRequest
Definition
OllamaChatRequest.java:20
io.github.ollama4j.models.chat.OllamaChatRequest.OllamaChatRequest
OllamaChatRequest(String model, List< OllamaChatMessage > messages)
Definition
OllamaChatRequest.java:26
io.github.ollama4j.models.chat.OllamaChatRequest.equals
boolean equals(Object o)
Definition
OllamaChatRequest.java:32
io.github.ollama4j.models.chat.OllamaChatRequest.OllamaChatRequest
OllamaChatRequest()
Definition
OllamaChatRequest.java:24
io.github.ollama4j.models.request.OllamaCommonRequest
Definition
OllamaCommonRequest.java:15
io.github.ollama4j.models.request.OllamaCommonRequest.model
String model
Definition
OllamaCommonRequest.java:17
io.github.ollama4j.models.request.OllamaCommonRequest.toString
String toString()
Definition
OllamaCommonRequest.java:28
io.github.ollama4j.utils.OllamaRequestBody
Definition
OllamaRequestBody.java:12
src
main
java
io
github
ollama4j
models
chat
OllamaChatRequest.java
Generated by
1.12.0