Class OpenAiRestApi.OpenAiRestApiReaderInterceptor

java.lang.Object
io.quarkiverse.langchain4j.openai.common.OpenAiRestApi.OpenAiRestApiReaderInterceptor
All Implemented Interfaces:
jakarta.ws.rs.ext.ReaderInterceptor
Enclosing interface:
OpenAiRestApi

public static class OpenAiRestApi.OpenAiRestApiReaderInterceptor extends Object implements jakarta.ws.rs.ext.ReaderInterceptor
This method validates that the response is not empty, which happens when the API returns an error object
  • Constructor Details

    • OpenAiRestApiReaderInterceptor

      public OpenAiRestApiReaderInterceptor()
  • Method Details

    • aroundReadFrom

      public Object aroundReadFrom(jakarta.ws.rs.ext.ReaderInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      aroundReadFrom in interface jakarta.ws.rs.ext.ReaderInterceptor
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException