File tree Expand file tree Collapse file tree 2 files changed +18
-17
lines changed
sample-code/spring-app/src/main/java/com/sap/ai/sdk/app Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -218,14 +218,14 @@ Object maskingAnonymization(
218218
219219 @ GetMapping ("/maskingRegex" )
220220 @ Nonnull
221- Object maskingRegex (
222- @ Nullable @ RequestParam (value = "format" , required = false ) final String format ) {
223- final var response = service .maskingRegex ();
224- if ("json" .equals (format )) {
225- return response ;
226- }
227- return response .getContent ();
221+ Object maskingRegex (
222+ @ Nullable @ RequestParam (value = "format" , required = false ) final String format ) {
223+ final var response = service .maskingRegex ();
224+ if ("json" .equals (format )) {
225+ return response ;
228226 }
227+ return response .getContent ();
228+ }
229229
230230 @ GetMapping ("/completion/{resourceGroup}" )
231231 @ Nonnull
Original file line number Diff line number Diff line change @@ -274,16 +274,17 @@ public OrchestrationChatResponse maskingAnonymization(@Nonnull final DPIEntities
274274
275275 return client .chatCompletion (prompt , configWithMasking );
276276 }
277- /**
278- * Let the orchestration service evaluate the feedback on the AI SDK provided by a hypothetical
279- * user. Mask any patient IDs given as they are not relevant for judging the sentiment of the
280- * feedback.
281- *
282- * @link <a
283- * href="https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/data-masking">SAP AI
284- * Core: Orchestration - Data Masking</a>
285- * @return the assistant response object
286- */
277+
278+ /**
279+ * Let the orchestration service evaluate the feedback on the AI SDK provided by a hypothetical
280+ * user. Mask any patient IDs given as they are not relevant for judging the sentiment of the
281+ * feedback.
282+ *
283+ * @link <a
284+ * href="https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/data-masking">SAP AI
285+ * Core: Orchestration - Data Masking</a>
286+ * @return the assistant response object
287+ */
287288 @ Nonnull
288289 public OrchestrationChatResponse maskingRegex () {
289290 val systemMessage = Message .system ("Repeat following messages" );
You can’t perform that action at this time.
0 commit comments