Skip to content

Commit 588b30f

Browse files
committed
docs(readme): fix https proxy example (#705)
1 parent 34e128f commit 588b30f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ If you would like to disable or customize this behavior, for example to use the
456456
<!-- prettier-ignore -->
457457
```ts
458458
import http from 'http';
459-
import HttpsProxyAgent from 'https-proxy-agent';
459+
import { HttpsProxyAgent } from 'https-proxy-agent';
460460

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

466466
// Override per-request:
467467
await openai.models.list({
468-
baseURL: 'http://localhost:8080/test-api',
469468
httpAgent: new http.Agent({ keepAlive: false }),
470-
})
469+
});
471470
```
472471

473472
## Semantic Versioning

0 commit comments

Comments
 (0)