From 0d414530ffe0ea3333d67eca67736277d1d4c3b2 Mon Sep 17 00:00:00 2001 From: sucenscuo Date: Mon, 20 Oct 2025 17:09:24 +0800 Subject: [PATCH] chore(ollama): remove unused parameters of request record Signed-off-by: sucenscuo --- .../org/springframework/ai/ollama/api/OllamaApi.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/models/spring-ai-ollama/src/main/java/org/springframework/ai/ollama/api/OllamaApi.java b/models/spring-ai-ollama/src/main/java/org/springframework/ai/ollama/api/OllamaApi.java index 7f3b56c7e53..b645b07a0b8 100644 --- a/models/spring-ai-ollama/src/main/java/org/springframework/ai/ollama/api/OllamaApi.java +++ b/models/spring-ai-ollama/src/main/java/org/springframework/ai/ollama/api/OllamaApi.java @@ -685,12 +685,10 @@ public record ListModelResponse( @JsonInclude(Include.NON_NULL) public record ShowModelRequest( @JsonProperty("model") String model, - @JsonProperty("system") String system, - @JsonProperty("verbose") Boolean verbose, - @JsonProperty("options") Map options + @JsonProperty("verbose") Boolean verbose ) { public ShowModelRequest(String model) { - this(model, null, null, null); + this(model, null); } } @@ -725,8 +723,7 @@ public record DeleteModelRequest( public record PullModelRequest( @JsonProperty("model") String model, @JsonProperty("insecure") boolean insecure, - @JsonProperty("username") String username, - @JsonProperty("password") String password, + @JsonProperty("stream") boolean stream ) { public PullModelRequest { @@ -737,7 +734,7 @@ public record PullModelRequest( } public PullModelRequest(String model) { - this(model, false, null, null, true); + this(model, false, true); } }