File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ export abstract class APIClient {
177177 maxRetries = 2 ,
178178 timeout = 600000 , // 10 minutes
179179 httpAgent,
180- fetch : overridenFetch ,
180+ fetch : overriddenFetch ,
181181 } : {
182182 baseURL : string ;
183183 maxRetries ?: number | undefined ;
@@ -190,7 +190,7 @@ export abstract class APIClient {
190190 this . timeout = validatePositiveInteger ( 'timeout' , timeout ) ;
191191 this . httpAgent = httpAgent ;
192192
193- this . fetch = overridenFetch ?? fetch ;
193+ this . fetch = overriddenFetch ?? fetch ;
194194 }
195195
196196 protected authHeaders ( opts : FinalRequestOptions ) : Headers {
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ describe('instantiate client', () => {
177177 expect ( client . apiKey ) . toBe ( 'My API Key' ) ;
178178 } ) ;
179179
180- test ( 'with overriden environment variable arguments' , ( ) => {
180+ test ( 'with overridden environment variable arguments' , ( ) => {
181181 // set options via env var
182182 process . env [ 'OPENAI_API_KEY' ] = 'another My API Key' ;
183183 const client = new OpenAI ( { apiKey : 'My API Key' } ) ;
You can’t perform that action at this time.
0 commit comments