Skip to content

Commit

Permalink
docs(readme): fix https proxy example (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Mar 5, 2024
1 parent 4ff790a commit d144789
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -456,7 +456,7 @@ If you would like to disable or customize this behavior, for example to use the
<!-- prettier-ignore -->
```ts
import http from 'http';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';

// Configure the default for all requests:
const openai = new OpenAI({
Expand All @@ -465,9 +465,8 @@ const openai = new OpenAI({

// Override per-request:
await openai.models.list({
baseURL: 'http://localhost:8080/test-api',
httpAgent: new http.Agent({ keepAlive: false }),
})
});
```

## Semantic Versioning
Expand Down

0 comments on commit d144789

Please sign in to comment.