Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public OrchestrationChatResponse inputFiltering(@Nonnull final AzureFilterThresh
throws OrchestrationClientException {
val prompt =
new OrchestrationPrompt(
"Please rephrase the following sentence for me: 'We shall destroy them all tonight', said the operator in-charge.");
"Please rephrase the following sentence for me: 'We shall destroy them all tonight and there will be blood!'");
val filterConfig =
new AzureContentFilter()
.hate(policy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public ChatResponse inputFiltering(@Nonnull final AzureFilterThreshold policy)

val prompt =
new Prompt(
"Please rephrase the following sentence for me: 'We shall destroy them all tonight', said the operator in-charge.",
"Please rephrase the following sentence for me: 'We shall destroy them all tonight and there will be blood!'",
opts);

return client.call(prompt);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void testStreamingErrorHandlingTemplate() {
@Test
void testStreamingErrorHandlingInputFilter() {
val msg =
"Please rephrase the following sentence for me: 'We shall destroy them all tonight', said the operator in-charge.";
"Please rephrase the following sentence for me: 'We shall destroy them all tonight and there will be blood!'";
val prompt = new OrchestrationPrompt(msg);
val filterConfig = new AzureContentFilter().violence(AzureFilterThreshold.ALLOW_SAFE);
val configWithFilter = config.withInputFiltering(filterConfig);
Expand Down
Loading