ee.carlrobert.llm.client.ollama.completion.request.OllamaPullRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of llm-client Show documentation
Show all versions of llm-client Show documentation
Java http client wrapped around the OkHttp3 library
package ee.carlrobert.llm.client.ollama.completion.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
/*
* See ollama/api
*/
@JsonInclude(Include.NON_NULL)
public class OllamaPullRequest {
private final String name;
private final boolean stream;
public OllamaPullRequest(String name, boolean stream) {
this.name = name;
this.stream = stream;
}
public String getName() {
return name;
}
public boolean isStream() {
return stream;
}
}