Skip to content

Commit

Permalink
chore(internal): fix some typos (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 17, 2024
1 parent aa89964 commit ed64904
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export abstract class APIClient {
maxRetries = 2,
timeout = 600000, // 10 minutes
httpAgent,
fetch: overridenFetch,
fetch: overriddenFetch,
}: {
baseURL: string;
maxRetries?: number | undefined;
Expand All @@ -210,7 +210,7 @@ export abstract class APIClient {
this.timeout = validatePositiveInteger('timeout', timeout);
this.httpAgent = httpAgent;

this.fetch = overridenFetch ?? fetch;
this.fetch = overriddenFetch ?? fetch;
}

protected authHeaders(opts: FinalRequestOptions): Headers {
Expand Down
2 changes: 1 addition & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ describe('instantiate client', () => {
expect(client.apiKey).toBe('my-anthropic-api-key');
});

test('with overriden environment variable arguments', () => {
test('with overridden environment variable arguments', () => {
// set options via env var
process.env['ANTHROPIC_API_KEY'] = 'another my-anthropic-api-key';
const client = new Anthropic({ apiKey: 'my-anthropic-api-key' });
Expand Down

0 comments on commit ed64904

Please sign in to comment.