Skip to content

Commit

Permalink
Merge pull request #734 from andreadimaio/main
Browse files Browse the repository at this point in the history
Fix Moderation doc
  • Loading branch information
geoand authored Jul 9, 2024
2 parents 61ae84e + 92f212e commit aff0820
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/modules/ROOT/pages/ai-services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
Expand Down

0 comments on commit aff0820

Please sign in to comment.