Skip to content

Commit 8b7b012

Browse files
fix: Removed Javascript from Spring application
1 parent 4d3029b commit 8b7b012

File tree

4 files changed

+15
-284
lines changed

4 files changed

+15
-284
lines changed

docs/guides/OPENAI_CHAT_COMPLETION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ var result = OpenAiClient.forModel(GPT_35_TURBO).chatCompletion(request);
122122
String resultMessage = result.getContent();
123123
```
124124

125-
See [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OpenAiController.java)
125+
See [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OpenAiService.java)
126126

127127
## Chat Completion with Specific Model Version
128128

@@ -205,7 +205,7 @@ Integer tokensUsed = totalOutput.getUsage().getCompletionTokens();
205205
System.out.println("Tokens used: " + tokensUsed);
206206
```
207207

208-
Please find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OpenAiController.java). It shows the usage of Spring
208+
Please find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OpenAiService.java). It shows the usage of Spring
209209
Boot's `ResponseBodyEmitter` to stream the chat completion delta messages to the frontend in real-time.
210210

211211
## Embedding
@@ -218,4 +218,4 @@ var request = new OpenAiEmbeddingParameters().setInput("Hello World");
218218
OpenAiEmbeddingOutput embedding = OpenAiClient.forModel(TEXT_EMBEDDING_ADA_002).embedding(request);
219219
```
220220

221-
See [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OpenAiController.java)
221+
See [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OpenAiService.java)

docs/guides/ORCHESTRATION_CHAT_COMPLETION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var config = new OrchestrationModuleConfig()
8383
.withLlmConfig(OrchestrationAiModel.GPT_4O);
8484
```
8585

86-
Please also refer to [our sample code](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java) for this and all following code examples.
86+
Please also refer to [our sample code](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java) for this and all following code examples.
8787

8888
## Chat Completion
8989

@@ -176,7 +176,7 @@ var result =
176176
The convenience method `getContent()` on the resulting object will throw an `OrchestrationClientException` upon invocation.
177177
The low level API under `getOriginalResponse()` will not throw an exception.
178178

179-
You will find [some examples](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java) in our Spring Boot application demonstrating response handling with filters.
179+
You will find [some examples](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java) in our Spring Boot application demonstrating response handling with filters.
180180

181181
## Data masking
182182

@@ -253,7 +253,7 @@ try (Stream<String> stream = client.streamChatCompletion(prompt, config)) {
253253
}
254254
```
255255

256-
Please find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java).
256+
Please find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java).
257257
It shows the usage of Spring Boot's `ResponseBodyEmitter` to stream the chat completion delta messages to the frontend in real-time.
258258

259259
## Set model parameters

docs/guides/SPRING_AI_INTEGRATION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Prompt prompt = new Prompt("What is the capital of France?", opts);
5050
ChatResponse response = client.call(prompt);
5151
```
5252

53-
Please find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/SpringAiOrchestrationController.java).
53+
Please find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java).
5454

5555
## Orchestration Masking
5656

@@ -74,7 +74,7 @@ ChatResponse response = client.call(prompt);
7474
```
7575

7676
Please
77-
find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/SpringAiOrchestrationController.java).
77+
find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java).
7878

7979
## Stream chat completion
8080

@@ -98,4 +98,4 @@ Flux<String> responseFlux =
9898

9999
_Note: A Spring endpoint can return `Flux` instead of `ResponseEntity`._
100100

101-
Please find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/SpringAiOrchestrationController.java).
101+
Please find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java).

0 commit comments

Comments
 (0)