Class OllamaRestApi.OllamaRestApiReaderInterceptor

java.lang.Object
io.quarkiverse.langchain4j.ollama.OllamaRestApi.OllamaRestApiReaderInterceptor
All Implemented Interfaces:
jakarta.ws.rs.ext.ReaderInterceptor
Enclosing interface:
OllamaRestApi

public static class OllamaRestApi.OllamaRestApiReaderInterceptor extends Object implements jakarta.ws.rs.ext.ReaderInterceptor
This is needed because for some reason Vert.x is not giving us the entire content of the last chunk and this results in a json parsing exception.
  • Constructor Details

    • OllamaRestApiReaderInterceptor

      public OllamaRestApiReaderInterceptor()
  • 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