mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-12-08 05:28:19 +00:00
Fix readme
This commit is contained in:
@@ -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
|
$ 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
|
### Create client
|
||||||
```rust
|
```rust
|
||||||
use openai_api_rs::v1::api::Client;
|
use openai_api_rs::v1::api::Client;
|
||||||
|
|||||||
Reference in New Issue
Block a user