diff --git a/modules/ai/src/main/java/com/bytedesk/ai/springai/ollama/Ollama4jRestController.java b/modules/ai/src/main/java/com/bytedesk/ai/springai/ollama/Ollama4jRestController.java index 5bd3989d5f..f9c03c0670 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/springai/ollama/Ollama4jRestController.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/springai/ollama/Ollama4jRestController.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-11-11 13:19:23 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2025-04-18 17:03:20 + * @LastEditTime: 2025-04-18 17:28:45 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -82,9 +82,9 @@ public class Ollama4jRestController { @GetMapping("/models/{model}/details") public ResponseEntity> getModelDetails(@PathVariable String model) { - LibraryModel libraryModel = new LibraryModel(); - libraryModel.setName(model); - LibraryModelDetail modelDetail = ollama4jService.getModelDetails(libraryModel); + // LibraryModel libraryModel = new LibraryModel(); + // libraryModel.setName(model); + LibraryModelDetail modelDetail = ollama4jService.getModelDetails(model); return ResponseEntity.ok(JsonResult.success(modelDetail)); }