Skip to content

Commit 8113936

Browse files
TillK17I750911a-dJonas-Isrrpanackal
authored
Html page redesign (#242)
* HTML sample page redesign v1 * v1 * added endpoint descriptions * improved streaming scenario detection * adapted request and response handling to new backend * Makes sample app work with new endpoint * Minor improvements * minor change to descriptions Co-authored-by: Roshin Rajan Panackal <[email protected]> * minor change to descriptions Co-authored-by: Roshin Rajan Panackal <[email protected]> * minor change to endpoint description Co-authored-by: Roshin Rajan Panackal <[email protected]> * minor change to descriptions Co-authored-by: Roshin Rajan Panackal <[email protected]> * update of orchestration endpoint description to "LLM" instead of "OpenAI" * update of orchestration controller JavaDocs to "LLM" instead of "OpenAI" --------- Co-authored-by: I750911 <[email protected]> Co-authored-by: Alexander Dümont <[email protected]> Co-authored-by: Jonas Israel <[email protected]> Co-authored-by: Roshin Rajan Panackal <[email protected]>
1 parent a800436 commit 8113936

File tree

2 files changed

+615
-84
lines changed

2 files changed

+615
-84
lines changed

sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class OrchestrationController {
3333
new ObjectMapper().setVisibility(PropertyAccessor.FIELD, Visibility.ANY);
3434

3535
/**
36-
* Chat request to OpenAI through the Orchestration service with a simple prompt.
36+
* Chat request to an LLM through the Orchestration service with a simple prompt.
3737
*
3838
* @return a ResponseEntity with the response content
3939
*/
@@ -52,7 +52,7 @@ ResponseEntity<String> completion(
5252
}
5353

5454
/**
55-
* Asynchronous stream of an OpenAI chat request
55+
* Asynchronous stream of an LLM chat request
5656
*
5757
* @return the emitter that streams the assistant message response
5858
*/
@@ -81,7 +81,7 @@ ResponseEntity<ResponseBodyEmitter> streamChatCompletion() {
8181
}
8282

8383
/**
84-
* Chat request to OpenAI through the Orchestration service with a template.
84+
* Chat request to an LLM through the Orchestration service with a template.
8585
*
8686
* @link <a href="https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/templating">SAP
8787
* AI Core: Orchestration - Templating</a>
@@ -102,7 +102,7 @@ ResponseEntity<Object> template(
102102
}
103103

104104
/**
105-
* Chat request to OpenAI through the Orchestration service using message history.
105+
* Chat request to an LLM through the Orchestration service using message history.
106106
*
107107
* @return a ResponseEntity with the response content
108108
*/
@@ -172,7 +172,7 @@ ResponseEntity<String> maskingAnonymization(
172172
}
173173

174174
/**
175-
* Chat request to OpenAI through the Orchestration deployment under a specific resource group.
175+
* Chat request to an LLM through the Orchestration deployment under a specific resource group.
176176
*
177177
* @return a ResponseEntity with the response content
178178
*/

0 commit comments

Comments
 (0)