Skip to content

Commit 641692f

Browse files
committed
Update Streaming test
1 parent eb664b3 commit 641692f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ OrchestrationChatResponse completion() {
6666
@SuppressWarnings("unused") // The end-to-end test doesn't use this method
6767
@GetMapping("/streamChatCompletion")
6868
@Nonnull
69-
public ResponseEntity<ResponseBodyEmitter> streamChatCompletion() {
69+
ResponseEntity<ResponseBodyEmitter> streamChatCompletion() {
7070
final var prompt =
71-
new OrchestrationPrompt("Can you give me the first 100 numbers of the Fibonacci sequence?");
71+
new OrchestrationPrompt(
72+
"Please create a small story about developing a software project with around 700 words");
7273
final var stream = client.streamChatCompletion(prompt, config);
7374

7475
final var emitter = new ResponseBodyEmitter();

0 commit comments

Comments
 (0)