java.lang.Object
io.quarkiverse.langchain4j.mistralai.MistralAiRestApi.DoneFilter
- All Implemented Interfaces:
Predicate<org.jboss.resteasy.reactive.client.SseEvent<String>>
- Enclosing interface:
- MistralAiRestApi
public static class MistralAiRestApi.DoneFilter
extends Object
implements Predicate<org.jboss.resteasy.reactive.client.SseEvent<String>>
Ensures that the terminal event sent by OpenAI is not processed (as it is not a valid json event)
-
Constructor Summary
Constructors
-
Method Summary
boolean
test(org.jboss.resteasy.reactive.client.SseEvent<String> event)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DoneFilter
public DoneFilter()
-
Method Details
-
test
public boolean test(org.jboss.resteasy.reactive.client.SseEvent<String> event)
- Specified by:
test in interface Predicate<org.jboss.resteasy.reactive.client.SseEvent<String>>