Skip to content

Commit bd1a82d

Browse files
chore(internal): fix some typos (#1227)
1 parent f361a0c commit bd1a82d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/core.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export abstract class APIClient {
198198
maxRetries = 2,
199199
timeout = 600000, // 10 minutes
200200
httpAgent,
201-
fetch: overridenFetch,
201+
fetch: overriddenFetch,
202202
}: {
203203
baseURL: string;
204204
maxRetries?: number | undefined;
@@ -211,7 +211,7 @@ export abstract class APIClient {
211211
this.timeout = validatePositiveInteger('timeout', timeout);
212212
this.httpAgent = httpAgent;
213213

214-
this.fetch = overridenFetch ?? fetch;
214+
this.fetch = overriddenFetch ?? fetch;
215215
}
216216

217217
protected authHeaders(opts: FinalRequestOptions): Headers {

Diff for: tests/index.test.ts

+1-1
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)