Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaGenerateRequest.java
Go to the documentation of this file.
1
package
io.github.ollama4j.models.generate;
2
3
4
import
io.github.ollama4j.models.request.OllamaCommonRequest;
5
import
io.github.ollama4j.utils.OllamaRequestBody;
6
7
import
java.util.List;
8
9
import
lombok.Getter;
10
import
lombok.Setter;
11
12
@Getter
13
@Setter
14
public
class
OllamaGenerateRequest
extends
OllamaCommonRequest
implements
OllamaRequestBody
{
15
16
private
String prompt;
17
private
List<String> images;
18
19
private
String system;
20
private
String context;
21
private
boolean
raw;
22
23
public
OllamaGenerateRequest
() {
24
}
25
26
public
OllamaGenerateRequest
(String
model
, String prompt) {
27
this.model =
model
;
28
this.prompt = prompt;
29
}
30
31
public
OllamaGenerateRequest
(String
model
, String prompt, List<String> images) {
32
this.model =
model
;
33
this.prompt = prompt;
34
this.images = images;
35
}
36
37
@Override
38
public
boolean
equals
(Object o) {
39
if
(!(o instanceof
OllamaGenerateRequest
)) {
40
return
false
;
41
}
42
43
return
this.
toString
().equals(o.toString());
44
}
45
46
}
io.github.ollama4j.models.generate.OllamaGenerateRequest
Definition
OllamaGenerateRequest.java:14
io.github.ollama4j.models.generate.OllamaGenerateRequest.OllamaGenerateRequest
OllamaGenerateRequest(String model, String prompt, List< String > images)
Definition
OllamaGenerateRequest.java:31
io.github.ollama4j.models.generate.OllamaGenerateRequest.equals
boolean equals(Object o)
Definition
OllamaGenerateRequest.java:38
io.github.ollama4j.models.generate.OllamaGenerateRequest.OllamaGenerateRequest
OllamaGenerateRequest()
Definition
OllamaGenerateRequest.java:23
io.github.ollama4j.models.generate.OllamaGenerateRequest.OllamaGenerateRequest
OllamaGenerateRequest(String model, String prompt)
Definition
OllamaGenerateRequest.java:26
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
generate
OllamaGenerateRequest.java
Generated by
1.12.0