Skip to content

Commit 3f9a035

Browse files
committed
small fix
1 parent 594d168 commit 3f9a035

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/guides/ORCHESTRATION_CHAT_COMPLETION.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ var prompt = new OrchestrationPrompt(inputParams);
117117
var result = client.chatCompletion(prompt, configWithTemplate);
118118
```
119119

120+
In this case the template is defined with the placeholders `{{?language}}` which is replaced by the value `German` in the input parameters.
121+
120122
Alternatively, you can use already prepared templates from the [Prompt Registry](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/prompt-registry) of SAP AI Core instead of passing a template in the request yourself.
121123

122124
```java
@@ -131,7 +133,7 @@ var result = client.chatCompletion(prompt, configWithTemplate);
131133

132134
A prompt template can be referenced either by ID as above, or by using a combination of name, scenario, and version. For details on storing a template in the Prompt Registry, refer to [this guide](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-prompt-template-imperative).
133135

134-
In this case the template is defined with the placeholders `{{?language}}` and `{{?iput}}` which are replaced by the values `Italian` and `cloud ERP systems`, respectively, in the input parameters.
136+
You can find [some examples](https://github.com/SAP/ai-sdk-java/tree/main/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java) in our Spring Boot application demonstrating using templates from Prompt Registry.
135137

136138
## Message history
137139

0 commit comments

Comments
 (0)