Skip to content

Commit d5ba673

Browse files
authored
initial (#799)
1 parent dab26d8 commit d5ba673

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public OrchestrationChatResponse inputFiltering(@Nonnull final AzureFilterThresh
179179
throws OrchestrationClientException {
180180
val prompt =
181181
new OrchestrationPrompt(
182-
"Please rephrase the following sentence for me: 'We shall destroy them all tonight', said the operator in-charge.");
182+
"Please rephrase the following sentence for me: 'We shall destroy them all tonight and there will be blood!'");
183183
val filterConfig =
184184
new AzureContentFilter()
185185
.hate(policy)

sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public ChatResponse inputFiltering(@Nonnull final AzureFilterThreshold policy)
137137

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

143143
return client.call(prompt);

sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/OrchestrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ void testStreamingErrorHandlingTemplate() {
468468
@Test
469469
void testStreamingErrorHandlingInputFilter() {
470470
val msg =
471-
"Please rephrase the following sentence for me: 'We shall destroy them all tonight', said the operator in-charge.";
471+
"Please rephrase the following sentence for me: 'We shall destroy them all tonight and there will be blood!'";
472472
val prompt = new OrchestrationPrompt(msg);
473473
val filterConfig = new AzureContentFilter().violence(AzureFilterThreshold.ALLOW_SAFE);
474474
val configWithFilter = config.withInputFiltering(filterConfig);

0 commit comments

Comments
 (0)