Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MatKuhr committed Dec 19, 2024
1 parent e36dbed commit f084533
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ResponseEntity<String> completion(
@GetMapping("/streamChatCompletion")
@Nonnull
ResponseEntity<ResponseBodyEmitter> streamChatCompletion() {
return service.streamChatCompletion();
return service.streamChatCompletion("developing a software project");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ public OrchestrationChatResponse grounding(@Nonnull final String groundingInput)
* @return the emitter that streams the assistant message response
*/
@Nonnull
public ResponseEntity<ResponseBodyEmitter> streamChatCompletion() {
public ResponseEntity<ResponseBodyEmitter> streamChatCompletion(@Nonnull final String topic) {
final var prompt =
new OrchestrationPrompt(
"Please create a small story about developing a software project with around 700 words.");
"Please create a small story about " + topic + " with around 700 words.");
final var stream = client.streamChatCompletion(prompt, config);

final var emitter = new ResponseBodyEmitter();
Expand Down

0 comments on commit f084533

Please sign in to comment.