Skip to content

Commit 461c6b4

Browse files
TomerAberbachstainless-app[bot]
authored andcommitted
chore: format example
1 parent 7f960e7 commit 461c6b4

File tree

1 file changed

+4
-5
lines changed
  • openai-java-example/src/main/java/com/openai/example

1 file changed

+4
-5
lines changed

openai-java-example/src/main/java/com/openai/example/Main.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ public static void main(String[] args) {
1717
ChatCompletionUserMessageParam.builder()
1818
.role(ChatCompletionUserMessageParam.Role.USER)
1919
.content(ChatCompletionUserMessageParam.Content.ofTextContent(
20-
"Tell me a story about building the best SDK!"
21-
))
22-
.build()
23-
))
20+
"Tell me a story about building the best SDK!"))
21+
.build()))
2422
.build();
2523

2624
// Non-streaming example
@@ -31,7 +29,8 @@ public static void main(String[] args) {
3129
System.out.println("\n-----------------------------------\n");
3230

3331
// Streaming example
34-
try (StreamResponse<ChatCompletionChunk> messageStreamResponse = client.chat().completions().createStreaming(completionCreateParams)) {
32+
try (StreamResponse<ChatCompletionChunk> messageStreamResponse =
33+
client.chat().completions().createStreaming(completionCreateParams)) {
3534
messageStreamResponse.stream()
3635
.flatMap(completion -> completion.choices().stream())
3736
.flatMap(choice -> choice.delta().content().stream())

0 commit comments

Comments
 (0)