Interface WatsonRestApi


@Path("/ml/v1-beta") @RegisterProvider(BearerRequestFilter.class) @Consumes("application/json") @Produces("application/json") public interface WatsonRestApi
This Microprofile REST client is used as the building block of all the API calls to Watsonx. 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...
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.jboss.logging.Logger
     
  • Method Summary

    Modifier and Type
    Method
    Description
    chat(TextGenerationRequest request, String version)
     
    static com.fasterxml.jackson.databind.ObjectMapper
    objectMapper(com.fasterxml.jackson.databind.ObjectMapper defaultObjectMapper)
     
    toException(jakarta.ws.rs.core.Response response)
     
  • Field Details

    • logger

      static final org.jboss.logging.Logger logger
  • Method Details