From 82fbed22301e12278b58955852255c98a4ddd423 Mon Sep 17 00:00:00 2001 From: Jonas Israel Date: Fri, 27 Mar 2026 10:15:34 +0100 Subject: [PATCH] initial --- .../java/com/sap/ai/sdk/app/services/OrchestrationService.java | 2 +- .../sap/ai/sdk/app/services/SpringAiOrchestrationService.java | 2 +- .../java/com/sap/ai/sdk/app/controllers/OrchestrationTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java b/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java index 296a0fed9..8a94557f1 100644 --- a/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java +++ b/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java @@ -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) diff --git a/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java b/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java index 06b12f476..06dff723d 100644 --- a/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java +++ b/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java @@ -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); diff --git a/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/OrchestrationTest.java b/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/OrchestrationTest.java index 383bae321..8f50409c0 100644 --- a/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/OrchestrationTest.java +++ b/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/OrchestrationTest.java @@ -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);