From 978432075c3c78f627c1105625126a24868b843f Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 5 Mar 2024 11:10:48 +0000 Subject: [PATCH] docs(readme): fix https proxy example --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1cfb2537..1207d5d2 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