Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongri Jin committed Aug 3, 2023
1 parent 079b7f6 commit 1011c12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1011c12

Please sign in to comment.