Skip to content

Commit 91a990a

Browse files
author
I750911
committed
fix of service
1 parent 5281ccc commit 91a990a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public ChatResponse masking() {
109109
* @return the assistant response object
110110
*/
111111
@Nonnull
112-
public ChatResponse inputFiltering(AzureFilterThreshold policy)
112+
public ChatResponse inputFiltering(@Nonnull final AzureFilterThreshold policy)
113113
throws OrchestrationClientException {
114114
val filterConfig =
115115
new AzureContentFilter().hate(policy).selfHarm(policy).sexual(policy).violence(policy);
@@ -137,7 +137,7 @@ public ChatResponse inputFiltering(AzureFilterThreshold policy)
137137
* @return the assistant response object
138138
*/
139139
@Nonnull
140-
public ChatResponse outputFiltering(AzureFilterThreshold policy)
140+
public ChatResponse outputFiltering(@Nonnull final AzureFilterThreshold policy)
141141
throws OrchestrationClientException {
142142
val filterConfig =
143143
new AzureContentFilter().hate(policy).selfHarm(policy).sexual(policy).violence(policy);

0 commit comments

Comments
 (0)