mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-15 03:38:04 +00:00
update modules/ai: mod 1 files
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user