Fix readme

This commit is contained in:
Dongri Jin
2023-08-04 06:39:49 +09:00
parent 079b7f6d8a
commit 1011c124cf

View File

@@ -18,6 +18,11 @@ The library needs to be configured with your account's secret key, which is avai
$ export OPENAI_API_KEY=sk-xxxxxxx
```
### Set OPENAI_API_ENDPOINT to environment variable (optional)
```bash
$ export OPENAI_API_ENDPOINT=https://api.openai.com/v1
```
### Create client
```rust
use openai_api_rs::v1::api::Client;