You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+62-6
Original file line number
Diff line number
Diff line change
@@ -7,21 +7,32 @@ Check out the [docs.rs](https://docs.rs/openai-api-rs/).
7
7
Cargo.toml
8
8
```toml
9
9
[dependencies]
10
-
openai-api-rs = "5.2.4"
10
+
openai-api-rs = "6.0.0"
11
11
```
12
12
13
13
## Usage
14
14
The library needs to be configured with your account's secret key, which is available on the [website](https://platform.openai.com/account/api-keys). We recommend setting it as an environment variable. Here's an example of initializing the library with the API key loaded from an environment variable and creating a completion:
15
15
16
-
### Set OPENAI_API_KEY to environment variable
16
+
### Set OPENAI_API_KEY or OPENROUTER_API_KEY to environment variable
0 commit comments