Update readme

This commit is contained in:
Dongri Jin
2023-04-11 06:35:37 +09:00
parent f0ae2812a7
commit 24f7c82d69

View File

@ -8,7 +8,7 @@ openai-api-rs = "0.1.5"
```
## Usage
The library needs to be configured with your account's secret key, which is available on the website. 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:
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:
### Set OPENAI_API_KEY to environment variable
```bash