diff --git a/README.md b/README.md index a08640b5..3ff6091e 100644 --- a/README.md +++ b/README.md @@ -304,8 +304,8 @@ import { fetch } from 'undici'; // as one example import Anthropic from '@anthropic-ai/sdk'; const client = new Anthropic({ - fetch: (url: RequestInfo, init?: RequestInfo): Response => { - console.log('About to make request', url, init); + fetch: async (url: RequestInfo, init?: RequestInfo): Promise => { + console.log('About to make a request', url, init); const response = await fetch(url, init); console.log('Got response', response); return response;