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 {
177
177
maxRetries = 2 ,
178
178
timeout = 600000 , // 10 minutes
179
179
httpAgent,
180
- fetch : overridenFetch ,
180
+ fetch : overriddenFetch ,
181
181
} : {
182
182
baseURL : string ;
183
183
maxRetries ?: number | undefined ;
@@ -190,7 +190,7 @@ export abstract class APIClient {
190
190
this . timeout = validatePositiveInteger ( 'timeout' , timeout ) ;
191
191
this . httpAgent = httpAgent ;
192
192
193
- this . fetch = overridenFetch ?? fetch ;
193
+ this . fetch = overriddenFetch ?? fetch ;
194
194
}
195
195
196
196
protected authHeaders ( opts : FinalRequestOptions ) : Headers {
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ describe('instantiate client', () => {
177
177
expect ( client . apiKey ) . toBe ( 'My API Key' ) ;
178
178
} ) ;
179
179
180
- test ( 'with overriden environment variable arguments' , ( ) => {
180
+ test ( 'with overridden environment variable arguments' , ( ) => {
181
181
// set options via env var
182
182
process . env [ 'OPENAI_API_KEY' ] = 'another My API Key' ;
183
183
const client = new OpenAI ( { apiKey : 'My API Key' } ) ;
You can’t perform that action at this time.
0 commit comments