File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ export abstract class APIClient {
198
198
maxRetries = 2 ,
199
199
timeout = 600000 , // 10 minutes
200
200
httpAgent,
201
- fetch : overridenFetch ,
201
+ fetch : overriddenFetch ,
202
202
} : {
203
203
baseURL : string ;
204
204
maxRetries ?: number | undefined ;
@@ -211,7 +211,7 @@ export abstract class APIClient {
211
211
this . timeout = validatePositiveInteger ( 'timeout' , timeout ) ;
212
212
this . httpAgent = httpAgent ;
213
213
214
- this . fetch = overridenFetch ?? fetch ;
214
+ this . fetch = overriddenFetch ?? fetch ;
215
215
}
216
216
217
217
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