Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaGenerateRequest.java
Go to the documentation of this file.
1package io.github.ollama4j.models.generate;
2
3
4import io.github.ollama4j.models.request.OllamaCommonRequest;
5import io.github.ollama4j.utils.OllamaRequestBody;
6
7import java.util.List;
8
9import lombok.Getter;
10import lombok.Setter;
11
12@Getter
13@Setter
15
16 private String prompt;
17 private List<String> images;
18
19 private String system;
20 private String context;
21 private boolean raw;
22
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}
OllamaGenerateRequest(String model, String prompt, List< String > images)