Skip to content

Commit

Permalink
docs(readme): fix typo in custom fetch implementation (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 29, 2024
1 parent 7697fa1 commit a4974c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -296,7 +296,7 @@ import { fetch } from 'undici'; // as one example
import Anthropic from '@anthropic-ai/sdk';

const client = new Anthropic({
fetch: async (url: RequestInfo, init?: RequestInfo): Promise<Response> => {
fetch: async (url: RequestInfo, init?: RequestInit): Promise<Response> => {
console.log('About to make a request', url, init);
const response = await fetch(url, init);
console.log('Got response', response);
Expand Down

0 comments on commit a4974c3

Please sign in to comment.