Skip to content

Commit 0bb563c

Browse files
committed
Add support for the custom SmallRye fault tolerance annotations (like rate limiting)
1 parent 229ad86 commit 0bb563c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/deployment/src/main/java/io/quarkiverse/langchain4j/deployment/AiServicesProcessor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,9 @@ public void handleAiServices(AiServicesRecorder recorder,
567567
for (AnnotationInstance annotationInstance : methodInfo.declaredAnnotations()) {
568568
// TODO: we need to review this
569569
if (annotationInstance.name().toString()
570-
.startsWith("org.eclipse.microprofile.faulttolerance")) {
570+
.startsWith("org.eclipse.microprofile.faulttolerance")
571+
|| annotationInstance.name().toString()
572+
.startsWith("io.smallrye.faulttolerance.api")) {
571573
mc.addAnnotation(annotationInstance);
572574
}
573575
}

0 commit comments

Comments
 (0)