diff --git a/README.md b/README.md index 1cfb2537a..1207d5d24 100644 --- a/README.md +++ b/README.md @@ -456,7 +456,7 @@ If you would like to disable or customize this behavior, for example to use the ```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({ @@ -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