update modules/ai: mod 1 files

This commit is contained in:
jack ning
2025-04-18 17:29:18 +08:00
parent 267b46807f
commit ee7fefef36

View File

@@ -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<JsonResult<LibraryModelDetail>> 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));
}