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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaroundReadFrom(jakarta.ws.rs.ext.ReaderInterceptorContext context)
-
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:
aroundReadFromin interfacejakarta.ws.rs.ext.ReaderInterceptor- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-