Class Ollama4jRestController

java.lang.Object
com.bytedesk.ai.springai.providers.ollama.Ollama4jRestController

@RestController @RequestMapping("/api/v1/ollama4j") public class Ollama4jRestController extends Object
  • Field Details

  • Constructor Details

    • Ollama4jRestController

      public Ollama4jRestController()
  • Method Details

    • ping

      @GetMapping("/ping") public org.springframework.http.ResponseEntity<JsonResult<Boolean>> ping(OllamaRequest request)
    • getLocalModels

      @GetMapping("/local-models") public org.springframework.http.ResponseEntity<JsonResult<List<io.github.ollama4j.models.response.Model>>> getLocalModels(OllamaRequest request)
    • getModels

      @GetMapping("/models") public org.springframework.http.ResponseEntity<JsonResult<List<io.github.ollama4j.models.response.LibraryModel>>> getModels(OllamaRequest request)
    • processModelsResponse

      @GetMapping("/ps") public org.springframework.http.ResponseEntity<JsonResult<io.github.ollama4j.models.ps.ModelsProcessResponse>> processModelsResponse(OllamaRequest request)
    • getLibraryModelDetails

      @GetMapping("/library/models/details") public org.springframework.http.ResponseEntity<JsonResult<io.github.ollama4j.models.response.LibraryModelDetail>> getLibraryModelDetails(OllamaRequest request)
    • getModelDetails

      @GetMapping("/models/details") public org.springframework.http.ResponseEntity<JsonResult<io.github.ollama4j.models.response.ModelDetail>> getModelDetails(OllamaRequest request)
    • getModelTag

      @GetMapping("/models/tags") public org.springframework.http.ResponseEntity<JsonResult<io.github.ollama4j.models.response.LibraryModelTag>> getModelTag(OllamaRequest request)
    • pullModel

      @PostMapping("/models/pull") public org.springframework.http.ResponseEntity<?> pullModel(@RequestBody OllamaRequest request)
    • deleteModel

      @PostMapping("/models/delete") public org.springframework.http.ResponseEntity<?> deleteModel(@RequestBody OllamaRequest request)