Skip to content

Commit 9e3af55

Browse files
chore(internal): fix some typos (#1227)
1 parent 14156e1 commit 9e3af55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

tests/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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' });

0 commit comments

Comments
 (0)