Skip to content

Commit cb831c2

Browse files
committed
Remove unnecessary formatting change in docs.
1 parent 7e5a085 commit cb831c2

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

docs/guides/ORCHESTRATION_CHAT_COMPLETION.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Additionally, include the necessary Maven dependency in your project.
2626
Add the following dependency to your `pom.xml` file:
2727

2828
```xml
29-
3029
<dependencies>
3130
<dependency>
3231
<groupId>com.sap.ai.sdk</groupId>
@@ -138,22 +137,22 @@ Apply content filtering to the chat completion:
138137

139138
```java
140139
var prompt = new OrchestrationPrompt(
141-
"""
140+
"""
142141
Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it!
143-
142+
144143
```DISCLAIMER: The area surrounding the apartment is known for prostitutes and gang violence including armed conflicts, gun violence is frequent.
145144
""");
146145

147146
var filterStrict = new AzureContentFilter()
148-
.hate(ALLOW_SAFE)
149-
.selfHarm(ALLOW_SAFE)
150-
.sexual(ALLOW_SAFE)
147+
.hate(ALLOW_SAFE)
148+
.selfHarm(ALLOW_SAFE)
149+
.sexual(ALLOW_SAFE)
151150
.violence(ALLOW_SAFE);
152151

153152
var filterLoose = new AzureContentFilter()
154-
.hate(ALLOW_SAFE_LOW_MEDIUM)
155-
.selfHarm(ALLOW_SAFE_LOW_MEDIUM)
156-
.sexual(ALLOW_SAFE_LOW_MEDIUM)
153+
.hate(ALLOW_SAFE_LOW_MEDIUM)
154+
.selfHarm(ALLOW_SAFE_LOW_MEDIUM)
155+
.sexual(ALLOW_SAFE_LOW_MEDIUM)
157156
.violence(ALLOW_SAFE_LOW_MEDIUM);
158157

159158
// changing the input to filterLoose will allow the message to pass
@@ -182,9 +181,9 @@ var configWithMasking = config.withMaskingConfig(maskingConfig);
182181

183182
var systemMessage = Message.system("Please evaluate the following user feedback and judge if the sentiment is positive or negative.");
184183
var userMessage = Message.user("""
185-
I think the SDK is good, but could use some further enhancements.
186-
My architect Alice and manager Bob pointed out that we need the grounding capabilities, which aren't supported yet.
187-
""");
184+
I think the SDK is good, but could use some further enhancements.
185+
My architect Alice and manager Bob pointed out that we need the grounding capabilities, which aren't supported yet.
186+
""");
188187

189188
var prompt = new OrchestrationPrompt(systemMessage, userMessage);
190189

@@ -285,11 +284,7 @@ var configJson = """
285284

286285
var prompt = new OrchestrationPrompt(Map.of("your-input-parameter", "your-param-value"));
287286

288-
new
289-
290-
OrchestrationClient().
291-
292-
executeRequestFromJsonModuleConfig(prompt, configJson);
287+
new OrchestrationClient().executeRequestFromJsonModuleConfig(prompt, configJson);
293288
```
294289

295290
While this is not recommended for long term use, it can be useful for creating demos and PoCs.

0 commit comments

Comments
 (0)