Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MatKuhr committed Aug 30, 2024
1 parent 4c3bf70 commit 64bbe15
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,20 +336,21 @@ final var template =
"Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! {{?disclaimer}}");
final var templatingConfig = TemplatingModuleConfig.create().template(template);

final var filterStrict =
Filter.create()
.type(ProviderType.AZURE_CONTENT_SAFETY)
final var filterStrict =
FilterConfig.create()
.type(FilterConfig.TypeEnum.AZURE_CONTENT_SAFETY)
.config(
FilterConfig.create()
AzureContentSafety.create()
.hate(NUMBER_0)
.selfHarm(NUMBER_0)
.sexual(NUMBER_0)
.violence(NUMBER_0));

final var filterLoose =
Filter.create()
.type(ProviderType.AZURE_CONTENT_SAFETY)
FilterConfig.create()
.type(FilterConfig.TypeEnum.AZURE_CONTENT_SAFETY)
.config(
FilterConfig.create()
AzureContentSafety.create()
.hate(NUMBER_4)
.selfHarm(NUMBER_4)
.sexual(NUMBER_4)
Expand Down

0 comments on commit 64bbe15

Please sign in to comment.