Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit b2ea37b

Browse files
author
deep-learning-dynamo
committed
fixed examples
1 parent 6358f5f commit b2ea37b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ Simple way:
5353
```
5454
String apiKey = System.getenv("OPENAI_API_KEY");
5555
56-
OpenAiClient client = new OpenAiClient(apiKey);
56+
OpenAiClient client = OpenAiClient.builder()
57+
.openAiApiKey(apiKey)
58+
.build();
5759
```
5860

5961
Customizable way:
@@ -62,7 +64,7 @@ Customizable way:
6264
String apiKey = System.getenv("OPENAI_API_KEY");
6365
6466
OpenAiClient client = OpenAiClient.builder()
65-
.apiKey(apiKey)
67+
.openAiApiKey(apiKey)
6668
.callTimeout(ofSeconds(60))
6769
.connectTimeout(ofSeconds(60))
6870
.readTimeout(ofSeconds(60))

0 commit comments

Comments
 (0)