Skip to content

Commit

Permalink
Readme sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesDuboisSAP committed Sep 3, 2024
1 parent 45a20c6 commit f843061
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ void printStream() {
</details>

#### Framework-agnostic example
This example passes the stream of chat completion delta messages to a frontend in real-time.
```java
public static ReturnType streamChatCompletion() {
final var request =
Expand Down Expand Up @@ -281,6 +282,7 @@ public static ReturnType streamChatCompletion() {
```

#### Spring Boot example
This example uses Spring Boot's `ResponseBodyEmitter` to stream the chat completion delta messages to the frontend in real-time.
```java
public static ResponseEntity<ResponseBodyEmitter> streamChatCompletion() {
final var request =
Expand Down

0 comments on commit f843061

Please sign in to comment.