Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
CustomModelFilePathRequest.java
Go to the documentation of this file.
1
package
io.github.ollama4j.models.request;
2
3
import
static
io.github.ollama4j.utils.Utils.getObjectMapper;
4
5
import
com.fasterxml.jackson.core.JsonProcessingException;
6
import
lombok.AllArgsConstructor;
7
import
lombok.Data;
8
9
@Data
10
@AllArgsConstructor
11
public
class
CustomModelFilePathRequest
{
12
private
String name;
13
private
String path;
14
15
@Override
16
public
String
toString
() {
17
try
{
18
return
getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(
this
);
19
}
catch
(JsonProcessingException e) {
20
throw
new
RuntimeException(e);
21
}
22
}
23
}
io.github.ollama4j.models.request.CustomModelFilePathRequest
Definition
CustomModelFilePathRequest.java:11
io.github.ollama4j.models.request.CustomModelFilePathRequest.toString
String toString()
Definition
CustomModelFilePathRequest.java:16
src
main
java
io
github
ollama4j
models
request
CustomModelFilePathRequest.java
Generated by
1.12.0