Interface OpenshiftAiRestApi


@Path("/v1/task") @Consumes("application/json") @Produces("application/json") public interface OpenshiftAiRestApi
This Microprofile REST client is used as the building block of all the API calls to OpenShift AI. The implementation is provided by the Reactive REST Client in Quarkus.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Introduce a custom logger as the stock one logs at the DEBUG level by default...
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static com.fasterxml.jackson.databind.ObjectMapper
    objectMapper(com.fasterxml.jackson.databind.ObjectMapper defaultObjectMapper)
     
  • Method Details

    • chat

      @POST @Path("text-generation") TextGenerationResponse chat(TextGenerationRequest request)
    • objectMapper

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