forked from Mirror/ollama4j
Added Json ignore properties for ModelsProcessResponse
Signed-off-by: Amith Koujalgi <koujalgi.amith@gmail.com>
This commit is contained in:
parent
30250f79d9
commit
51dd3f3e1e
@ -58,7 +58,14 @@ public class OllamaAPI {
|
||||
private final ToolRegistry toolRegistry = new ToolRegistry();
|
||||
|
||||
/**
|
||||
* Instantiates the Ollama API.
|
||||
* Instantiates the Ollama API with default Ollama host: <a href="http://localhost:11434">http://localhost:11434</a>
|
||||
**/
|
||||
public OllamaAPI() {
|
||||
this.host = "http://localhost:11434";
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates the Ollama API with specified Ollama host address.
|
||||
*
|
||||
* @param host the host address of Ollama server
|
||||
*/
|
||||
|
@ -1,5 +1,6 @@
|
||||
package io.github.ollama4j.models.ps;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@ -7,6 +8,7 @@ import java.util.List;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ModelsProcessResponse {
|
||||
private List<ModelProcess> models;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user