From 92f212edccb870f19ed51909e251c271855ff47d Mon Sep 17 00:00:00 2001 From: Andrea Di Maio Date: Mon, 8 Jul 2024 21:55:59 +0200 Subject: [PATCH] Fix Moderation doc --- docs/modules/ROOT/pages/ai-services.adoc | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/modules/ROOT/pages/ai-services.adoc b/docs/modules/ROOT/pages/ai-services.adoc index dee2dd5e3..a281228c6 100644 --- a/docs/modules/ROOT/pages/ai-services.adoc +++ b/docs/modules/ROOT/pages/ai-services.adoc @@ -291,7 +291,6 @@ content by annotating the method with `@Moderate`. For moderation to work, the following criteria need to be met: * A CDI bean for `dev.langchain4j.model.moderation.ModerationModel` must be configured (the `quarkus-langchain4j-openai` and `quarkus-langchain4j-azure-openai` provide one out of the box) -* The interface must be configured with `@RegisterAiService(moderationModelSupplier = RegisterAiService.BeanModerationModelSupplier.class)` === Advanced usage An alternative to providing a CDI bean is to configure the interface with `@RegisterAiService(moderationModelSupplier = MyCustomSupplier.class)`