We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 821cb9c + 4fa9fb4 commit 08149abCopy full SHA for 08149ab
sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java
@@ -291,10 +291,7 @@ public OrchestrationChatResponse maskingRegex() {
291
val prompt = new OrchestrationPrompt(systemMessage, userMessage);
292
val regex = "patient_id_[0-9]+";
293
val replacement = "REDACTED_ID";
294
- val maskingConfig =
295
- DpiMasking.anonymization()
296
- .withRegex(regex, replacement)
297
- .withRegex("student_id_[0-9]+", "student_id");
+ val maskingConfig = DpiMasking.anonymization().withRegex(regex, replacement);
298
val configWithMasking = config.withMaskingConfig(maskingConfig);
299
300
return client.chatCompletion(prompt, configWithMasking);
0 commit comments