diff --git a/README.md b/README.md index 594bb017..3e62d5af 100644 --- a/README.md +++ b/README.md @@ -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 => { + fetch: async (url: RequestInfo, init?: RequestInit): Promise => { console.log('About to make a request', url, init); const response = await fetch(url, init); console.log('Got response', response);