Class OpenAiRestApi.OpenAiRestApiWriterInterceptor
java.lang.Object
io.quarkiverse.langchain4j.openai.common.OpenAiRestApi.OpenAiRestApiWriterInterceptor
- All Implemented Interfaces:
jakarta.ws.rs.ext.WriterInterceptor
- Enclosing interface:
OpenAiRestApi
public static class OpenAiRestApi.OpenAiRestApiWriterInterceptor
extends Object
implements jakarta.ws.rs.ext.WriterInterceptor
The point of this is to properly set the
stream
value of the request
so users don't have to remember to set it manually-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
aroundWriteTo
(jakarta.ws.rs.ext.WriterInterceptorContext context)
-
Constructor Details
-
OpenAiRestApiWriterInterceptor
public OpenAiRestApiWriterInterceptor()
-
-
Method Details
-
aroundWriteTo
public void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException - Specified by:
aroundWriteTo
in interfacejakarta.ws.rs.ext.WriterInterceptor
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-