Interface OllamaRestApi


@Path("") @Consumes("application/json") @Produces("application/json") public interface OllamaRestApi
This Microprofile REST client is used as the building block of all the API calls to HuggingFace. The implementation is provided by the Reactive REST Client in Quarkus.
  • Method Details

    • generate

      @Path("/api/generate") @POST CompletionResponse generate(CompletionRequest request)
    • embeddings

      @Path("/api/embeddings") @POST EmbeddingResponse embeddings(EmbeddingRequest request)
    • objectMapper

      static com.fasterxml.jackson.databind.ObjectMapper objectMapper(com.fasterxml.jackson.databind.ObjectMapper defaultObjectMapper)